baumblatt / capacitor-firebase-auth

Capacitor Firebase Authentication Plugin
MIT License
261 stars 129 forks source link

Google signin does not work only on Android Play Store deployed app #132

Open ckc52403050 opened 3 years ago

ckc52403050 commented 3 years ago

I have an app using capacitor-firebase-auth to do Google signin. It works well in emulator. Works well too if I install the app-release.apk directly to my Android phone. However, when the app is deployed to Android Play Store, login failed. I checked the error logs in my server, it stated the following:

Error: Google Sign In failure. at Object.fromNative (capacitor-runtime.js:230:14) at :1:18

Do not know exactly what caused the error, as the error message did not include any status code or something.

Dependencies versions: "@capacitor/android": "^2.4.2", "@capacitor/core": "2.4.2", "capacitor-firebase-auth": "^2.3.2",

baumblatt commented 3 years ago

Hello @ckc52403050 ,

Are you using Play App Signing? If true, you must registry the signing key stored on Google's secure key management service in your Firebase project.

Best regards.

santosbj commented 3 years ago

Hi, I have the same situation.

"@capacitor/android": "^2.4.7", "@capacitor/core": "2.4.6", "capacitor-firebase-auth": "^2.3.5",

I don´t use "Play App Signing", my production apk works if i install it on device directly, but when i publish on "Play Store" y get "Error: Google Sign In failure".

santosbj commented 3 years ago

I solve my problem,

Google sign the app, then i put SHA-1 from "Play App Signing" and add on Firebase SDK configuration fingerprint!

Thanks.