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 ?
UPDATE
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 ?