EddyVerbruggen / cordova-plugin-googleplus

:heavy_plus_sign: Cordova plugin to login with Google Sign-In on iOS and Android
566 stars 626 forks source link

Error 10 intermittently #431

Open ecymerman opened 7 years ago

ecymerman commented 7 years ago

When logging in using Google on an Android device, sometimes an error 10 is returned, sometimes not. We can't find any pattern, though once an error is returned, it doesn't start working for a while. What could be the cause?

We could only get it working at all by using a 'Web Application' credential, an 'Android' credential never worked. IOS is OK, which uses an 'IOS' credential.

zacid commented 7 years ago

Error 10 issue here too on Google Android device

sandesh54321 commented 7 years ago

Error 10 issue in Cordova app build

qdequippe commented 7 years ago

+1 same issue

blyson commented 7 years ago

+1 same issue

qdequippe commented 7 years ago

I fixed this it was just a configuration problem with REVERSED_CLIENT_ID and webClientId

shadoWalker89 commented 7 years ago

Same here error 10

mkwsra commented 7 years ago

My problem was not including the SHA1 keys withing firebase, and since I'm in development phase so far, thus, I took the debug key sha1 like so: keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore

Copied it as shown (for sure without SH1: prefix):

screen shot 2017-10-12 at 3 02 46 am

And added it as shown here:

genie app settings firebase console

yxliang01 commented 7 years ago

I was getting error 10 because the client id was incorrect as well.

pptoan23 commented 7 years ago

@mkwsra I followed your steps but still get the error 10.

mkwsra commented 7 years ago

@pptoan23 Did you download google-services.json and place it at the root of your project? if not do the same for iOS as well!

genie app settings firebase console

pptoan23 commented 7 years ago

@mkwsra thank you ! I rollback anything that I changed before and redo your steps again. It worked.

nikmartin commented 6 years ago

@mkwsra This plugin doesn't require google-services.json as far as I can tell, and it's not in the setup instructions for the plugin. The only reason it requires it is because you have to configure an app in the firebase console in order to generate credentials

vdpdev commented 6 years ago

+1

erperejildo commented 6 years ago

you're the best @mkwsr

kamwoz commented 6 years ago

I had to add my web client id (the same as reversed client id in config.xml but in different format) this.googlePlus.login({webClientId: ENV.googleWebClientId})