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

Ionic 4 cordova Googleplus plugin not working in production

Open nayak001 opened this issue 3 years ago • 6 comments

I have implemented googleplus plugin of cordova in Ionic 4 application. I followed all steps carefully given by your documentaion

Note I have not used firebase rather from Developer console I got both WEB_CLIENT_ID and REVERSED_CLIENT_ID Here is package.json "cordova-plugin-media": {}, "cordova-plugin-googleplus": { "WEB_APPLICATION_CLIENT_ID": "xxxxxx.googleusercontent.com" }

and in config.xml I added <plugin name="cordova-plugin-googleplus" source="npm"> <variable name="REVERSED_CLIENT_ID" value="xxxxxxx.apps.googleusercontent.com" /> </plugin>

Please note application run perfectly without any error in debug as well as in production mode(I changed the REVERSED_CLIENT_ID by using the release key I have)

But I am facing problem while I deploy the signed version in Playstore, after installing the Gooleplus feature is not working. The pop-up containing the emailids in device simply disappears after clicking over it without showing any error.

Please anyone help. Thanks.

nayak001 avatar Apr 07 '21 13:04 nayak001

Not sure if it makes sense, but I was facing same problem.

I made a popup to show the error and it was error 10.

It seens to be working fine after I made this: Go to Google Play Console / Configuration / App integrity and make sure you have both SHA1 certificate added into your Firebase project (copy and paste).

Holp this help

botura avatar Apr 13 '21 15:04 botura

Ya @botura , you are right. I have tried it and it works. Thanks

nayak001 avatar Apr 19 '21 12:04 nayak001

@nayak001 please close this so it's clear that the problem has been resolved :)

CodeWithOz avatar Apr 22 '21 17:04 CodeWithOz

Thanks for pointing this out - it helped me as well!

rgustavsson avatar Jul 19 '21 23:07 rgustavsson

I am facing the same issue nd error. But I am not using Firebase. I am using only the Google Cloud Platform. So can anyone please let me know how I can solve this issue in production?

Topiya avatar Oct 16 '21 15:10 Topiya

Google Play store is signing your application with its own key, so you need to update the finger print of your client id in the google cloud console with the Google play store finger print that you can find in Google App Console / Configuration / App integrity

brunodeprez avatar Feb 03 '22 05:02 brunodeprez