I am using ionic native google plus login
but I am getting error 10 after doing the same.
Below is my code :-
doGoogleLogin(){
this.googlePlus.login({})
.then(res => {
this.router.navigate(['./tabs']);
this.userInfo = JSON.stringify(res);
console.log(res);
})
.catch(err =>{
console.log(err)
this.userInfo = JSON.stringify(err);
})
}
After Searching 4 days i figured out you have to do simple steps do that carefully.
1 first check your ionic version
if it ionic 3
Install the Cordova and Ionic Native plugins:
$ ionic cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=myreversedclientid
$ npm install --save @ionic-native/google-plus@4
Add this plugin to your app's module
2.go to Google Cloude Console
3.create Auth2
4.add your app id that com.xxxxxx.xxxxxx