The OTP verification works properly for debug build. I have also added SHA key in firebase console for release version. But Phone Auth doesn't work when I generate signed apk and upload it to play store. Should I retain both debug SHA keys and release keys after I upload the app to production on play store? Is Google App Signing compulsory for using a firebase app on production?
Asked
Active
Viewed 4,460 times
13
-
check your log, there might have some information – Vishal Oct 28 '18 at 17:50
-
[Google sign in not working after publishing in play store](https://stackoverflow.com/questions/39318370/google-sign-in-not-working-after-publishing-in-play-store) – RonTLV Oct 28 '18 at 18:15
-
The issue is already answered here hope that helps https://stackoverflow.com/questions/39318370/google-sign-in-not-working-after-publishing-in-play-store – Mahesh Jamdade Nov 21 '18 at 00:27
-
1Does this answer your question? [Google sign in not working after publishing in play store](https://stackoverflow.com/questions/39318370/google-sign-in-not-working-after-publishing-in-play-store) – Magnus Dec 21 '20 at 15:30
4 Answers
24
If this is the issue occurring on the app uploaded to play store, then below can be a feasible solution.
Steps
- Go to play console and select your app.
- Under release management, go to app signing.
- Find SHA-1 certificate and copy it.
- Go to firebase console and select your app.
- Go to project settings and add this SHA-1 certificate.
You are ready to rock again.

Prashant Paliwal
- 638
- 8
- 7
-
-
1
-
so the app should be publish first in order to use release version? – naoval luthfi Apr 01 '22 at 11:00
-
2
You need to add SHA-1 certificates. And if they are already added and you still face this problem (as in my case). Add SHA-256 as well and it works!!!

salvi shahzad
- 1,092
- 12
- 20
0
- Go to play console and select your app.
- Go to Dashboards and under Setup, click on App Integrity.
- Copy SHA-1 certificate and SHA-256 certificate.

mcfred
- 1,183
- 2
- 29
- 68
0
Go to your firbase settings. Authentication section - settings
Under authorised domains , add ur domain name in which ur app is hosted . Used only domain name , omit www