14

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?

4

4 Answers 4

25

If this is the issue occurring on the app uploaded to play store, then below can be a feasible solution.

Steps

  1. Go to play console and select your app.
  2. Under release management, go to app signing.
  3. Find SHA-1 certificate and copy it.
  4. Go to firebase console and select your app.
  5. Go to project settings and add this SHA-1 certificate.

You are ready to rock again.

4
  • What issue are you facing still? @salvishahzad May 20, 2021 at 9:18
  • 1
    This is now under Setup -> App Integrity
    – mcfred
    Aug 11, 2021 at 4:51
  • so the app should be publish first in order to use release version? Apr 1, 2022 at 11:00
  • after wasting 4 hours, Thank you.
    – Aman Deep
    Dec 22, 2022 at 15:57
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!!!

0
  1. Go to play console and select your app.
  2. Go to Dashboards and under Setup, click on App Integrity.
  3. Copy SHA-1 certificate and SHA-256 certificate.
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.