Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase phone authentication is not working after upload app on playstore

I have no idea why it is happening. My app works fine with debug apk and signed apk. I have added the SHA1 key to firebase console also. But when i uploaded my app and installed it from Play Store then it is not sending the OTP to my phone number. Please help!

Thanks in advance

like image 927
Abani Avatar asked Feb 08 '18 13:02

Abani


People also ask

How do I add my phone number to Firebase authentication?

In the Firebase console, open the Authentication section. In the Sign in method tab, enable the Phone provider if you haven't already. Open the Phone numbers for testing accordion menu. Provide the phone number you want to test, for example: +1 650-555-3434.

How do I remove Captcha verification from Firebase phone auth using Android?

Don't forget to go in Firebase Project Settings > App check > and Register firebase project in SafetyNet and Play Integrity register with default time token 1 hour and u will remove reCaptcha from phone auth OTP! That's awesome.


2 Answers

Did you just enrolled for Google Play App Signing? In that case your key has changed. You can get SHA1 of the key used to sign your apk from Play Store Console.

like image 200
sandeepd Avatar answered Oct 06 '22 01:10

sandeepd


Using these steps you have successfully resolved all issues -:

  1. Go to google play console
  2. Setup -> App Integrity
  3. copy SHA-1 certificate fingerprint in (App signing certificate)
  4. Open Firebase console -> Project settings -> Add fingerprint
  5. Paste your SHA-1 key
  6. Now Reinstall your app from play
like image 38
HandyPawan Avatar answered Oct 05 '22 23:10

HandyPawan