0

I cross checked everything SHA-1 is also correct as well as the packagename i am using real android device but still this error is showing.

onVerificationFailed com.google.firebase.auth.FirebaseAuthException: This app is not authorized to use Firebase Authentication. Please verifythat the correct package name and SHA-1 are configured in the Firebase Console. [ App validation failed. Is app running on a physical device? ] at com.google.firebase.auth.api.internal.zzce.zzb(Unknown Source) at com.google.firebase.auth.api.internal.zzdf.zza(Unknown Source) at com.google.firebase.auth.api.internal.zzdg.run(Unknown Source) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6095) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) here are the screenshots for SHA-1: SHA-1 from android studio

Firebase app settings

my package name

my package name above

manmeet singh
  • 86
  • 1
  • 3
  • Did you figure what is wrong with this?? I am facing the same problem with a client. I might suggest that this should not be used in a emulator as it doesnt work in emulator – Bawender Yandra Aug 08 '18 at 06:11
  • Try the detailed solution described [here](https://stackoverflow.com/questions/50085575/react-native-with-firebase-phone-auth-validation-failed), my problem was that after updating the SHA1 field, I failed to download and update the google-services.json file in my project. – oschvr Nov 18 '18 at 07:28

3 Answers3

1

I had the same issue recently. If Your app was on the play store,I would have told you to add the SHA-1 provided by play store as well. But since it is just a debug mode.Make sure you have the recent SHA-1 as it can change based on some factors.

Anonymous
  • 11
  • 3
0

This issue only happened to my OPPO phone. I guess some Chinese phone manufactories root Android system so the phone is detected as a simulator? Anyway, cope SHA-1 from google play to firebase works with me.

You can find google play SHA-1 from Google Play Console -> Release management -> App signing. Where you can find signing SHA-1 from google play

Just copy those SHA-1 to firebase.

For Firebase console. Go to "Project settings". You can find the place to paste SHA-1 from google play. enter image description here

Wu Yuan Chun
  • 1,116
  • 11
  • 11
-1

Make sure SHA1 key in both playstore and firebase dashboard are same