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

查看:20
本文介绍了在 Android 上启用安全网设备检查 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 屏幕开始出现.早些时候我没有启用安全网设备检查 API.查看 firebase 文档,我尝试启用安全网设备检查.

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 如何知道要链接到哪个谷歌云项目..

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

之前的流程是...电话验证->接收短信->自动验证短信和用户登录.现在的流程是......电话认证->出现验证码屏幕(加载了某种网页)... ->一段时间后,验证码屏幕会自行关闭 ->收到短信 ->使用 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 步:使用此 link ,启用项目的 Android 设备验证.

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

第 2 步:添加 SHA-256 指纹在您的 firebase.do 从 Firebase 控制台的设置页面执行此操作.下载并替换最新的 google-services.json 文件

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

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

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