Firebase Phone Auth重定向到浏览器?

ltqd579y  于 2023-08-07  发布在  其他
关注(0)|答案(1)|浏览(135)

当我通过Firebase发送OTP时,它会重定向到手机浏览器。在过去,这可以通过设备验证API来修复。但现在已经贬值了。

我的依赖项

  1. // Import the BoM for the Firebase platform
  2. implementation(platform("com.google.firebase:firebase-bom:32.2.0"))
  3. implementation("com.google.firebase:firebase-auth")
  4. implementation("com.google.firebase:firebase-crashlytics")
  5. implementation("com.google.firebase:firebase-analytics")
  6. implementation 'com.google.android.play:integrity:1.2.0'
  7. implementation 'androidx.browser:browser:1.5.0'

字符串
我已启用Play Integrity API


的数据
我甚至添加了Sha1和sha256(调试和发布)。并将文件添加到项目中。



我甚至卸载并重新安装了该应用程序。甚至将构建版本的变体更改为Release,但它不起作用。我错过了什么吗?

guykilcj

guykilcj1#

与最近被弃用的SafetyNet应用程序验证不同,Play Integrity API要求您的应用程序实际上已在Play Store上发布。Play完整性依赖于它在Google Play中有权访问的应用程序版本来正确证明您的验证尝试。
我假设它是出于安全原因而引入的,因为(理论上)实际上在店面上发布的应用程序应该经过验证,并且没有任何rootkit等。请记住,您的应用程序不一定要公开发布-尽管它不能只是草稿。您可以在此处查看Google Play的发布状态:https://support.google.com/googleplay/android-developer/answer/9859751?hl=en#zippy=%2Capp-status

相关问题