Error: This request is missing a valid app identifier, meaning that neither SafetyNet checks nor reCAPTCHA checks succeeded. Please try again, or check the logcat for more details

I’m getting this error in logcat while trying fetching verification code.

This request is missing a valid app identifier, meaning that neither SafetyNet checks nor reCAPTCHA checks succeeded. Please try again, or check the logcat for more details.

Firebase was opening browser for verifying reCAPTCHS (to verify if I’m not a robot). And then on browser I was getting a message “Unable to process request due to missing initial state. This may happen if browser session Storage is inaccessible or accidentally cleared”.
And then when I come back to my app, I get the dialog box “Your phone number might be wrong or connection error. Try again”

An update for the doubt: After 2-3 tries I got the otp sms on my mobile. But, my device was not visible in authentication, users in firebase console.

It looks like there is an open issue regarding can you try using chrome if you are using any other browser.

This documentation might help
https://firebase.google.com/docs/auth/android/phone-auth#send-a-verification-code-to-the-users-phone

else you can try something like this

mAuth = FirebaseAuth.getInstance()
mAuth.getFirebaseAuthSettings().setAppVerificationDisabledForTesting(true)

Let me know if this works

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.