5

When trying to run Firebase Phone Authentication through a Virtual Android Device am getting the following error messages;

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; https://i.stack.imgur.com/b43al.png

  2. SHA-1 & SHA-256 is added to Firebase Project Settings; https://i.stack.imgur.com/aovkV.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; https://i.stack.imgur.com/cfsqn.png

I have investigated similar StackOverflow topics and tried the possible solutions but no luck. Running on a physical Android Device it runs fine but in Virtual Device I can't get past captcha verification.

Also when checking the SafetyNet documentation I saw that it's deprecated and it will be replaced by Play Integrity API.

  1. Google Play Integrity API is enabled through Google Cloud Console; https://i.stack.imgur.com/qgnOm.png
  2. App level build.gradle has implementation 'com.google.firebase:firebase-appcheck-playintegrity'; https://i.stack.imgur.com/5q29y.png

Nothing I have mentioned helped me fix the error messages, any suggestions ?

UPDATE 1:: enter image description here 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?

SLendeR
  • 839
  • 7
  • 25

1 Answers1

0

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.
  2. Check if the android emulator (ADB) target supports Google Services

Example ADB targets with Google play services

Sahil Sonawane
  • 1,144
  • 9
  • 18