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);
})
}
In mi case not works the login method it seems like is not executed because not gives me any error and not executes the promise with then and catch. I don´t know how to fix that
In mi case i fixed it changing the values from play services to be the same because using different versions cause some errors
So I change this values
"cordova-plugin-request-location-accuracy": {
"PLAY_SERVICES_LOCATION_VERSION": "16.+"
},
"cordova-plugin-googleplus": {
"REVERSED_CLIENT_ID": "MY_REVERSED_ID",
"PLAY_SERVICES_VERSION": "11.8.0"
},
To
"cordova-plugin-request-location-accuracy": {
"PLAY_SERVICES_LOCATION_VERSION": "11.8.0"
},
"cordova-plugin-googleplus": {
"REVERSED_CLIENT_ID": "MY_REVERSED_ID",
"PLAY_SERVICES_VERSION": "11.8.0"
},
And delete platforms, www and plugins folder and executes the “ionic cordova build android” command and all works
1 Like
Ionic:
Ionic CLI : 5.2.1 (C:\Users\Erwin B\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.7.1
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1
Cordova:
Cordova CLI : 8.0.0
Cordova Platforms : not available
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 8 other plugins)
Utility:
cordova-res : 0.6.0
native-run : 0.2.7
System:
NodeJS : v10.16.0 (C:\Program Files\nodejs\node.exe)
npm : 6.9.0
OS : Windows 10
I have the same issue for building
Can you share the exact error that console shows?
Try to do the suggestions in this page: error 10 cordova google plus login ionic
Did you get the solution? plz reply