What are the exact steps to enable safetynet device check api on Android

◇◆丶佛笑我妖孽 提交于 2020-12-31 08:46:49

问题


I have integrated firebase phone authentication in my android app. It was working fine for almost 2 months and suddenly from 2-3 days back I am observing different behavior.

Capcha screen started appearing. Earlier I had not enabled safetynet device check API. Looking at firebase documentation I treid enabling safetynet device check.

As the steps are not clear, I am not sure if I did it right. I am also not clear how firebase and google cloud are linked. How firebase will know which google cloud project to link to..

Earlier the flow was ... Phone authentication->receive SMS->auto verify SMS and user is logged in. Now the flow is ... Phone authentication-> Captcha screen appears (kind of web page is loaded)... -> after sometime the captcha screen closes on its own -> SMS received -> login with OTP verification.

Let me know how to avoid the captcha screen. I am sure I will lose many users if capcha screen comes in between.


回答1:


Step 1:Go to your Google cloud console with this link ,enable Android Device Verification for your project.

Step 2: add SHA-256 fingerprint in your firebase.do so from the Settings Page of the Firebase console.Don't forget to download and replace the latest google-services.json file



来源:https://stackoverflow.com/questions/64656208/what-are-the-exact-steps-to-enable-safetynet-device-check-api-on-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!