android - 使用本机反应跳过firebase电话授权中的机器人验证
问题描述
在 Firebase 中进行电话验证时,应用程序会打开一个 App-Name/auth/handler 页面并进行机器人验证并再次返回应用程序,然后收到 OTP。
我想跳过机器人验证的这个中间步骤。
我尝试使用
firebase().auth().settings.appVerificationDisabledForTesting = true;
但它似乎仅用于测试目的和 IOS。
解决方案
通过注册您的应用程序以在 Google 的 SafetyNet 上正常工作,这适用于 android。
在此处查看有关 android 的文档:https ://firebase.google.com/docs/auth/android/phone-auth#enable-app-verification
如果您遇到困难,如何启用 SafetyNet 也有类似的问题:https ://stackoverflow.com/a/64657110/3668241
也许也有兴趣:
对于 iOS 以避免验证页面,您需要启用静默推送通知:https ://firebase.google.com/docs/auth/ios/phone-auth#start-receiving-silent-notifications
推荐阅读
- arrays - 从结构和数组中获取共同值
- chef-infra - 了解厨师属性
- ember.js - Ember 构建为某些文件添加了读取权限,但对其他文件没有
- angular - 当我尝试打开角度材料对话框时,Angular7 Modal StaticInjectorError
- visual-studio-2017 - 未使用 Visual Studio 2017 安装程序项目设置注册表
- python - 如果代码没有返回值而它应该返回一个指定的值
- python - 我们可以改变python字典的基本提取行为吗
- java - Spring Boot Embedded Kafka 无法连接
- javascript - 如何连续创建多个史莱克图像?
- elasticsearch - 通过 node-red 嵌套 elasticsearch GET 请求