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.
4
There are 4 best solutions below
1
On
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.
0
On
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.
0
On
Possible answer solved here.
try to synchronize the key by accessing:
Tools>Firebase>Authentication>Connect>Sync

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