Reputation: 21
I have attached firebase on my modified Q-Municate app which is open source on Github of android project and ran it. Here is the scenario: If the app ran from android studio via developer mode, it(Firebase sign in via phone number) runs smoothly and I manage to log in. I also build signed debug apk and upload on Playstore and after that I saw this issue. Later, I build again signed debug apk for testing in phone, but Firebase does not allow to sign in. It gives the following message1.
Upvotes: 2
Views: 1446
Reputation: 691
Possible answer solved here.
try to synchronize the key by accessing:
Tools>Firebase>Authentication>Connect>Sync
Upvotes: 0
Reputation: 636
You should set SHA1 as answered Niraj Sanghani. Pay attention, you should generate SHA1 for all keys, which used for signing your .apk. There is simple method for generating SHA1 via Android Studio.
Upvotes: 0
Reputation: 4117
While creating your configuration file use package name used for your starting activity e.g. If starting activity is MainActivity.java then use package name provided at 1st line of this file. DO NOT ADD FILENAME. And again generate configuration file.
After creating configuration file copy it in app folder of your android project.
Upvotes: 0
Reputation: 1493
You need to verify in fire base console if the sha1 of your default debug or production key has been saved in the firebase console project -> project->package - >settings
Upvotes: 0