cordova-plugin-googleplus icon indicating copy to clipboard operation
cordova-plugin-googleplus copied to clipboard

PhoneGap Build Android not working (8.4.0 and previous)

Open ishaiavrahami opened this issue 5 years ago • 2 comments
trafficstars

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.

ishaiavrahami avatar Mar 17 '20 01:03 ishaiavrahami

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

Re4ctor avatar Mar 17 '20 03:03 Re4ctor

@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.

ishaiavrahami avatar Mar 17 '20 04:03 ishaiavrahami