简体   繁体   中英

com.google.firebase.auth.FirebaseAuthException: This app is not authorized to use Firebase Authentication.

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) 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: 来自Android Studio的SHA-1

Firebase应用程序设置

我的包裹名称

my package name above

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.

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. 在哪里可以找到Google Play的签名SHA-1

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. 在此处输入图片说明

确保Playstore和Firebase仪表板中的SHA1键相同

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM