Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase phone authentication is not working on Android real device

Tags:

I've been trying to achieve phone auth using Firebase authentication. It's working with an android emulator. I used a test number and a real number in the emulator. Both works. But only the test number is working with a real device and throwing this exception for other numbers

Error is:[firebase_auth/missing-client-identifier] 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 setup SHA key in firebase also.

like image 533
Faslur Rajah Avatar asked Nov 22 '20 08:11

Faslur Rajah


People also ask

How do I remove Captcha verification from Firebase phone auth using Android?

Don't forget to go in Firebase Project Settings > App check > and Register firebase project in SafetyNet and Play Integrity register with default time token 1 hour and u will remove reCaptcha from phone auth OTP! That's awesome.


1 Answers

I am guessing you have not enabled the Device Check API. All you need to do is enable the Device Check API on the cloud platform.

I think after some updates they have made this change that for Safety Net you need SH1 Authentication along with enabling Device Check API.

You can follow the Steps as mentioned here.

Once you enable the device check api. Restart your application. It should work like a charm.

Do lemme know if you need further steps.

like image 98
Ayush Surana Avatar answered Sep 18 '22 02:09

Ayush Surana