I implemented Firebase authentication and it works when app is installed from Android Studio but not from exported release apk (or from Google Playstore).
I did the following:
The PhoneAuthProvider.OnVerificationStateChangedCallbacks
calls public void onVerificationFailed(FirebaseException e)
with the following exception returned:
This app is not authorized to use Firebase Authentication.Please verify that the correct package name and SHA-1 are configured in the Firebase Console.
I even generated the SHA-1 from command line using release keystore and the same SHA-1 from Google Playstore is generated.
Also, why are developers hiding their SHA-1 keys in screenshots?
Ok this is strange but it worked nontheless:
I removed all SHA-1 keys from Firebase and added the Google Playstore SHA-1 certificate fingerprint from Upload certificate
instead of App signing certificate
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.