在Android上启用Safetynet设备检查API的确切步骤是什么 [英] What are the exact steps to enable safetynet device check api on Android

查看:55
本文介绍了在Android上启用Safetynet设备检查API的确切步骤是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的android应用程序中集成了Firebase电话身份验证.它运行了将近2个月都很好,突然从2-3天后开始,我观察到了不同的行为.

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屏幕开始出现.之前我没有启用safetynet设备检查API.查看Firebase文档时,我会尝试启用Safetynet设备检查.

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

由于步骤不明确,所以我不确定我是否做对了.我也不清楚Firebase和Google Cloud是如何链接的.Firebase如何知道要链接到哪个Google Cloud项目.

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..

先前的流程是...电话验证->接收SMS->自动验证SMS,并且用户已登录.现在流程是...电话认证->出现验证码屏幕(网页类型已加载)...->一段时间后,验证码屏幕自行关闭->收到短信->使用OTP验证登录.

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.

步骤2:添加 SHA-256 指纹在Firebase控制台中,请从Firebase控制台的设置"页面中进行操作.别忘了下载并替换最新的google-services.json文件

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

这篇关于在Android上启用Safetynet设备检查API的确切步骤是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆