Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 217 Vote(s) - 3.6 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Firebase phone authentication is not working on Android real device

#1
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.
Reply

#2
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][1].

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

Do lemme know if you need further steps.


[1]:

[To see links please register here]

Reply

#3
I found this after much searching and should work for you or anyone else who stumbles here:

Put this line inside app/build.gradle under dependencies

implementation "androidx.browser:browser:1.2.0"

It is because its do reCAPTCHA verification and opens up browser.
Reply

#4
I resolved my issue by removing by old android studio sha-1 and sha-256 keys from firebase and adding a new one from the latest android studio.
Reply

#5
I have fixed this error.
In my case I added two android projects with same SHA-1 in single firebase project.
Once I removed one project from firebase project.
Now it is working for me.
Reply

#6
There are two ways Firebase Authentication accomplishes this:

> **SafetyNet**: If a user has a device with Google Play Services installed,
> and Firebase Authentication can verify the device as legitimate with
> Android SafetyNet, phone number sign-in can proceed.
>
or
>
> **reCAPTCHA verification**: In the event that SafetyNet cannot be used, such as when the user does not have Google Play Services
> support, or when testing your app on an **emulator**.


So your solution is either one of two

- **Retest on a real device**

- Add **reCAPTCHA verification** functionality to your app so you can
proceed with your emulator.

Reply

#7
Android has added **SafetyNet** you can read more [here][1]. But what you have to do is <br/><br/>**1.** enable the Android Device verification api [here][2]. and<br/><br/> **2.** If you haven't yet specified your app's SHA-256 fingerprint, do so from the Settings Page of the Firebase console. For more info read [details here.][3]


[1]:

[To see links please register here]

[2]:

[To see links please register here]

[3]:

[To see links please register here]

Reply

#8
**SafetyNet** is newly developed feature for android. But solved the issue without doing any changes in the App.

Following steps helped me to solve.

**Release Version**


1. Google Signs the Appbundle when you upload. So, Find and copy the SHA1 key of the app signed by google.
[Google Play Console - App Signing Key][2]


[![enter image description here][3]][3]


2. Navigate to your project **-> Project Settings** in Firebase Console and add SHA1 key by clicking on **Add fingureprint**.
[![enter image description here][4]][4]


[1]:

[2]:

[To see links please register here]

[3]:

[4]:



**Debug version**


1. Navigate to android directory of your project with following command with Terminal.

> cd android

2. Generate app signingReport and copy the SHA1 key

> gradlew signingReport
>
> on Mac :
>
> ./gradlew signingReport

[![enter image description here][1]][1]


3. Add the SHA1 key in firebase app.
Reply

#9
This was worked for me :-
If your app is published on the play store, Copy App signing key certificate from the Google Play console (**Release > Setup > App Integrity page**). Insert your signing key to your Firebase Console(**Project settings Page**).

Follow this link - [

[To see links please register here]

][1]


[1]:

[To see links please register here]

Reply

#10
I removed my phone number from phone number for testing on firebase and it was worked for me when working on real device not emulator.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through