I am building an app in the android studio using firebase authentication...how do I google login in release mode? It works in debug mode but not in release mode.
Asked
Active
Viewed 4,319 times
7
-
1Are you sure added your SHA key in firebase project? – Hardy Android Jan 25 '18 at 09:28
-
I had a similar issue. Check out this: https://stackoverflow.com/questions/41419942/recent-changes-with-firebase-authentication-via-google-sign-in – Sergey Emeliyanov Jan 25 '18 at 09:37
-
See [this](https://stackoverflow.com/questions/43468529/cannot-authenticate-with-google-on-a-real-device-when-accesing-the-app-from-play). – Alex Mamo Jan 25 '18 at 09:39
-
1check your `google-services.json` file in your project, and see if the SHA signatures `certificate_hash` available there matches with your release key SHA. – Amrut Bidri Jan 25 '18 at 11:41
-
yes my SHA1 IS there – ricardo Chitagu Feb 08 '18 at 16:33
1 Answers
17
I had a similar issue. And it resolve by:
- Go to google play console
- In Release management -> App signing
- Get SHA-1 in App signing certificate
- Update your SHA-1 in console firebase
- Download new file google-services.json
- Update file google-services.json in your app
- Create new release

Phuc Nguyen
- 211
- 2
- 5