EddyVerbruggen / cordova-plugin-googleplus

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

PhoneGap Build Android not working (8.4.0 and previous) #684

Open ishaiavrahami opened 4 years ago

ishaiavrahami commented 4 years ago

Hello everyone, I've came across an issue that on my Android Device running (8.0.0) will build but will give me an Error code 10 as a callback from the button. Ive created a keystore file, got the SHA1 and built the APK with the generated keystore and added the SHA1 to Google Console, and Firebase.

I didn't see any mentions on PhoneGap build other than installing the plugin. If anyone has an idea what might be going on. I've also used the same keystore for Facebook plugin and that works!

Im using the newest releases (8.4.0) and also tired 5 previous releases and im getting the same error code 10.

This is my config for android <plugin spec="https://github.com/EddyVerbruggen/cordova-plugin-googleplus#50a39d8" > <param name="REVERSED_CLIENT_ID" value="com.googleusercontent.apps...../> </plugin>

Please help me out from this issue.

Re4ctor commented 4 years ago

Check and recheck, i found out that during signing, android i using the keystore in /home/myname/.android/ and not the one i created. Error 10 is always cause of signing. You can fix it using a custom debug singning file thaqt point to your keystore as described here https://forum.ionicframework.com/t/google-login-error-10/93230/7

For me it worked like that

ishaiavrahami commented 4 years ago

@Re4ctor thank you for your response.. Im using PhoneGap Build with the keystore key i created and i know its the right keystore key because Facebook Plugin requires that keystore key and it works. For some strange reason Google doesn't work. Im using PhoneGap Build so im limited on how much i can do.