简体   繁体   English

Flutter:SafetyNet Attestation 基本完整性失败

[英]Flutter: SafetyNet Attestation fails basic integrity

When trying to run Firebase Phone Authentication through a Virtual Android Device am getting the following error messages;尝试通过虚拟 Android 设备运行 Firebase 电话身份验证时,收到以下错误消息;

E/zzbf    ( 6464): SafetyNet Attestation fails basic integrity.
I/zzmt    ( 6464): Provider GmsCore_OpenSSL not available
W/System  ( 6464): Ignoring header X-Firebase-Locale because its value was null.
  1. Android Device Verification for the project is enabled through Google Cloud Console; Android 项目的设备验证通过谷歌云控制台启用; https://i.imgur.com/e1XWrWS.png https://i.imgur.com/e1XWrWS.png

  2. SHA-1 & SHA-256 is added to Firebase Project Settings; SHA-1 & SHA-256 添加到 Firebase 项目设置中; https://i.imgur.com/0PLnkzm.png https://i.imgur.com/0PLnkzm.png

  3. App level build.gradle has implementation "androidx.browser:browser:1.4.0" & implementation 'com.google.android.gms:play-services-safetynet:18.0.1 ;应用程序级别build.gradle具有implementation "androidx.browser:browser:1.4.0"implementation 'com.google.android.gms:play-services-safetynet:18.0.1 https://i.imgur.com/RPHS4Y1.png https://i.imgur.com/RPHS4Y1.png

I have investigated similar StackOverflow topics and tried the possible solutions but no luck.我调查了类似的 StackOverflow 主题并尝试了可能的解决方案,但没有运气。 Running on a physical Android Device it runs fine but in Virtual Device I can't get past captcha verification.在物理 Android 设备上运行它运行良好,但在虚拟设备中我无法通过验证码。

Also when checking the SafetyNet documentation I saw that it's deprecated and it will be replaced by Play Integrity API .此外,在检查SafetyNet 文档时,我看到它已被弃用,它将被Play Integrity API取代。

  1. Google Play Integrity API is enabled through Google Cloud Console; Google Play Integrity API 通过 Google Cloud Console 启用; https://i.imgur.com/WctB3i8.png https://i.imgur.com/WctB3i8.png
  2. App level build.gradle has implementation 'com.google.firebase:firebase-appcheck-playintegrity' ;应用级别build.gradle具有implementation 'com.google.firebase:firebase-appcheck-playintegrity' https://i.imgur.com/qr1LiZ4.png https://i.imgur.com/qr1LiZ4.png

Nothing I have mentioned helped me fix the error messages, any suggestions?我提到的任何内容都没有帮助我修复错误消息,有什么建议吗?

UPDATE 1: :更新1 :: 在此处输入图像描述 Found this place and added Firebase App Check dependency to my app, but does it actually have anything to do with it as my issue is still going on?找到这个地方并添加了Firebase App Check对我的应用程序的依赖关系,但它实际上与它有什么关系,因为我的问题仍在继续?

You can try with this, might help,你可以试试这个,可能有帮助,

  1. Make sure to re-download the google-services.json whenever you change the SHA keys in the Firebase console.每当您在 Firebase 控制台中更改 SHA 密钥时,请务必重新下载google-services.json
  2. Check if the android emulator (ADB) target supports Google Services检查 android 仿真器 (ADB) 目标是否支持 Google 服务

使用 Google Play 服务的示例 ADB 目标

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用模拟器时,SafetyNet 认证在 android firebase phoneAuthProvider 中的基本完整性失败 - SafetyNet Attestation fails basic integrity in android firebase phoneAuthProvider while using emulators SafetyNet 认证失败 Flutter Firebase 电话认证 - SafetyNet Attestation fails Flutter Firebase Phone Authentication Safet.net 到 Play Integrity 迁移 - Google Cloud 帐户 - Safetynet to Play Integrity migration - Google Cloud account Flutter:Firebase 基本查询或基本搜索代码 - Flutter: Firebase basic Query or Basic Search code Flutter web App部署到云端运行失败 - Flutter web App fails to deploy on cloud Run Native Android Firebase AppCheck 应用认证失败 - Native Android Firebase AppCheck App attestation failed 在 firebase 中从 SafetyNet 的应用程序检查中注销应用程序 - unregister app in App check from SafetyNet in firebase E/zzf:检索 SafetyNet 令牌时出现问题:7:Android - E/zzf: Problem retrieving SafetyNet Token: 7: Android Flutter app使用google Sign In登录失败 - Flutter app fails to log in using google Sign In Flutter 由于 Amplify_core 而导致构建失败 - Flutter build fails due to Amplify_core
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM