0

I'm getting an exception while trying to phone auth. The app is working fine in app-debug but when I generate app-release, the Firebase exception throw that this app is not authorised to use Firebase Authentication.

Alex Mamo
  • 130,605
  • 17
  • 163
  • 193
Syed Hussain Mehdi
  • 1,168
  • 1
  • 11
  • 15

2 Answers2

1

In order to make the authentication process of an app work also when you have published it to Play Store, the release SHA-1 certificate fingerprint is needed. So please add this certificate in your Firebase Console using the instructions that you can find in this post.

In the end, just download the JSON file again from Firebase Console and put in the right place. Updated the app that contains the new changes in Play Store and you're done.

If you intend to add also Google Autehntication, you'll find more informations here.

Alex Mamo
  • 130,605
  • 17
  • 163
  • 193
0

You need your SHA1 fingerprint, as stated before. Go to your Android Studio Project, open the gradle tab on the right, go to tasks > android > signingReport. Execute the signingReport Task (double click), and then copy the SHA1 code from your console

Martin Nowosad
  • 791
  • 8
  • 15