Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Ionic 4 cordova Googleplus plugin not working in production #734

Open
nayak001 opened this issue Apr 7, 2021 · 6 comments
Open

Ionic 4 cordova Googleplus plugin not working in production #734

nayak001 opened this issue Apr 7, 2021 · 6 comments

Comments

@nayak001
Copy link

nayak001 commented Apr 7, 2021

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.

@botura
Copy link

botura commented Apr 13, 2021

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

@nayak001
Copy link
Author

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

@CodeWithOz
Copy link

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

@rgustavsson
Copy link

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

@Topiya
Copy link

Topiya commented Oct 16, 2021

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?

@brunodeprez
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants