Reputation: 71
I have made a flutter app with firebase with OTP verification, it is working fine in debug mode and releasing APK
. But after uploading to playstore the phone doesn't receive an OTP message. I have added the SHA - 1
and SHA - 256
keys from the play console to firebase project settings, still not working. Is there a time delay or something before the change is reflected in the application after updating the app in playstore (Internal testing)?
Upvotes: 7
Views: 8456
Reputation: 444
I am expanding on the solution provided in this answer as it was not sufficient to solve it for my case.
If you are working on a release version of the app then go to Google play console > setup > app integrity > app signing. You will find a list of SHA-1 and SHA-256 fingerprints. Enter the first ones under "App signing key certificate" into Firebase project config.
Upvotes: 0
Reputation: 2519
Update SHA-1 Key in Firebase project setting
Also check your google cloud project api key setting and also add SHA-1 Key credentials if you have Key restrictions.
Upvotes: 0
Reputation: 11
It might be because you have uploaded only release signing keys. Add upload keys from Google Play Console and it will work.
Upvotes: 1
Reputation: 2299
For debug keys : Open your project in android studio > Click on Gradle (In the right panel) > Click on Your Project > Click on Tasks > Click on android > Double Click on signingReport
For release keys : Use this command to generate release keys: keytool -list -v -keystore "your jks file path " -alias "key name"
Add jks path and key name and run this command in android studio terminal.
OR
You can also get SHA1 and SHA- 256 from google play console . Go to Play store Console > Your project > Release > Setup > App signing .
Check if you have completed all the above steps in your proejct . If your app is live on play store make sure your firebase project have both debug & release SHA1,SHA-256 key in your firebase console.
Upvotes: 6
Reputation: 61
I also came across same problem with phone authentication You can go to Google cloud platform of the firebase app From there go to credentials (You can search credentials) Add a OAuth credential give the sha1 that you get from play console and package name while creating this OAuth credential This worked for me
Upvotes: 3
Reputation: 11
You need to install the Google Play service in Firebase. Follow the following steps:
Upvotes: 0
Reputation: 21
Several possibilities come to mind. After entering your Sha key, you need to add the new json file to your project. Firebase responds quickly to updates
Another possibility is cloud rules. Check this area. This situation may halt the process.
Upvotes: 2