[英]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.
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
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
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取代。
implementation 'com.google.firebase:firebase-appcheck-playintegrity'
;implementation 'com.google.firebase:firebase-appcheck-playintegrity'
; 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,你可以试试这个,可能有帮助,
google-services.json
whenever you change the SHA keys in the Firebase console.google-services.json
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.