React Native Google Sign In Not Working In Release Mode

Viewed 1610

I'm building release apk with @react-native-google-signin/google-signin but it doesn't work. BUT, it works on my real device which is connected during react-native run-android --variant=release. I also added both debug and release SHA1 to Firebase.

1 Answers

Google Login does NOT work when downloading my app from the play store.

Check if "Google Play App Signing" is enabled for your app. If it is enabled, you will need to add the "App signing certificate" SHA-1 to your firebase console.

You can find it at: App -> Release (in left sidebar) -> Setup -> App integrity. Under the App signing key certificate, copy SHA-1 certificate fingerprint into firebase console for the Android app.

If you are not using firebase, and your app is enabled for "Google Play App Signing": Go to "https://console.developers.google.com/" -> click "Credential" in the right panel -> Find "Client ID" for type "Android" under "OAuth 2.0 Client IDs" section -> Edit -> replace "SHA-1 certificate fingerprint" with the one from App -> Release (in left sidebar) -> Setup -> App integrity -> App signing key certificate.

Google Login does NOT work when downloading my app from the play store

Related