简体   繁体   中英

Android Firebase phone Authentication

I am using firebase phone authentication in my app. It works in the run-time apk. But when I generate a signed apk for realese purpose, the phone authentication doesn't work. It says the app validation failed (cf. the image below).

在此处输入图片说明

I think you missed to add SHA-1 of Release APK in your firebase project.

In order to get SHA-1 of Release APK,

keytool -list -v -keystore {keystore_name} -alias {alias_name}

For example,

keytool -list -v -keystore /Users/example/Desktop/example.jks -alias example

After you got fingerprint, just enter it in the firebase console like you did before using fingerprint for debug.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM