App not authorized to use Firebase Authentication but working fine with test phone

3,785 views
Skip to first unread message

Azeem Haider

unread,
Sep 13, 2018, 10:56:55 AM9/13/18
to Firebase Google Group
I'm facing very strange behavior of Firebase. Everything is working fine when I first time upload my apk in play store. After few days when I update my apk. Now it show This app is not authorized to use Firebase Authentication. check the screen shot. I read my answers on StackOverFlow. Almost all of them point that there is some problem in package name or in SHA-1 But in my case everything is perfect when I install app using android studio it's working fine but when I upload it on play store after this it does not work. And the strange thing is that when I enter any test phone it's working but not with the original phone number. I'm using real device. If there is any problem in package name or in SHA-1 then why it's working for test phone numbers ?

asdasd.PNG




I tried almost all the methods but no one is working for me.

I create sha-1 using this.


keytool -list -v -keystore "key store path" -alias "key alias"

output is something like 96:A2:-------------------- I add this into firebase and generate new google_services.json file and place it into android project and upload apk to play store but when I try to run app it show me same error(app not authorized).


After this I try to create SHA-1 from android studio. using

Gradle -> appName -> android -> signingReport

It show something like B0:F7:----------------------------- I add it into firebase console and generate google_servics.json file after uploading apk is not working.

After this I try


tools -> firebase -> auth -> connect -> sync


This one is also not working.

And after this I try to add both SHA-1 in firebase console still not working.

Can you please let me know what can be problem ?

 


 
 


Kiana McNellis

unread,
Sep 18, 2018, 5:35:57 PM9/18/18
to fireba...@googlegroups.com
1)  If you are using Play Store app signing, then the SHA1 from you distributed app will be different from the one you are using locally.  Make sure you add the SHA1 key from Play Console to your app in the Firebase Console.

2)  Test Phone numbers (whitelisted in the Firebase console), don't actually send an sms, so they don't get the same SHA1 checks.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/93a7737a-30cb-46a4-b3d3-95764bc22f3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages