flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

I cant use sms authentication after turn on app check and play integrity

Open snosey opened this issue 2 years ago • 81 comments

I cant user sms authentication after turn on app check and play integrity everything was working well, but after turn it on alwayes give me error of missing client identifier.

i had added sha1 & 256 from play console to firebase and problem still exist. please i need help because app is already published

WhatsApp Image 2023-02-16 at 2 40 27 AM

snosey avatar Feb 16 '23 09:02 snosey

also i tried to enable saftey net and get this error , although i am the owner of project ! Screenshot 2023-02-16 at 11 58 28 AM

snosey avatar Feb 16 '23 09:02 snosey

@snosey Can you provide complete error log in properly formatted text ? Please avoid posting screenshots. Also, which device are you seeing this error on ? Does it have Google play services enabled ?

From the above screenshot, have you enabled SafetyNet instead of Play integrity ?

darshankawar avatar Feb 16 '23 11:02 darshankawar

i cant enable safteyNet , keep telling me you are not the owner but i have enabled play integrity altough i have enabled play integrity and put SHA1 & 256 in firebase console from google play.. i cant solve the problem :( please help me

snosey avatar Feb 16 '23 11:02 snosey

this problem happend only when user download app from playstore

snosey avatar Feb 16 '23 11:02 snosey

Can you provide complete error log in properly formatted text ? Also, which device are you seeing this error on ? Does it have Google play services enabled ?

Please provide these details.

darshankawar avatar Feb 17 '23 11:02 darshankawar

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.

although they have Google play services enabled

snosey avatar Feb 17 '23 11:02 snosey

I have the same problem: I cant enable safteyNet, Firebase keep telling me I'm not the owner

sarasini avatar Feb 17 '23 11:02 sarasini

I am going ahead and labeling this for team's attention for expected behavior. A similar issue that was reported earlier: https://github.com/firebase/flutterfire/issues/10174

/cc @Lyokone for thoughts.

darshankawar avatar Feb 21 '23 09:02 darshankawar

Same. We can't avoid reCAPTCHA since SafetyNet is disallowed in new project

santa112358 avatar Feb 23 '23 06:02 santa112358

SafetyNet migration deadline was June 2023 Is it related with this ?

OziTFA avatar Feb 27 '23 20:02 OziTFA

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.

although they have Google play services enabled

Please add your play console SHA1 and SHA256 in Project Setting and in Play Integrity

mihir-concetto avatar Mar 01 '23 09:03 mihir-concetto

Please add your play console SHA1 and SHA256 in Project Setting and in Play Integrity

both added, still same for me

OziTFA avatar Mar 01 '23 10:03 OziTFA

i faced same issue. i also added debug release both SHA1 and SHA256 and in project setting and SHA256 in play integrity .That's worked for me

mihir-concetto avatar Mar 01 '23 10:03 mihir-concetto

Same for me tried each and every solution enabling Play App check Google Play Integrity API adding SHA256 and SHA1 keys to firebase console but still seeing reCAPTCHA screen Please help we have a release ahead.

nicks258 avatar Mar 02 '23 14:03 nicks258

I'm in the same boat. Can't release because SafetyNet is deprecated and I CANNOT enable it for my project, but it is required to avoid the reCAPTCHA screen. Please help!

hed5meg avatar Mar 06 '23 04:03 hed5meg

Hey @snosey, are you sure you've added the SHA-1 & SHA-256 key for debug and release mode to the app in your Firebase console? That would be the first port of call.

Have you also enabled "Android Device Verification" in your google console (GCP)? If not, please enable, and re-download your android service file, replace the existing one, run flutter clean & rebuild app.

russellwheatley avatar Mar 07 '23 15:03 russellwheatley

I hava the same error com.google.firebase.auth.FirebaseAuthException: 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. at com.google.android.gms.internal.firebase-auth-api.zzxc.zza(com.google.firebase:firebase-auth@@21.1.0:28) at com.google.android.gms.internal.firebase-auth-api.zzxw.zza(com.google.firebase:firebase-auth@@21.1.0:1) at com.google.android.gms.internal.firebase-auth-api.zzxx.run(com.google.firebase:firebase-auth@@21.1.0:3) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7870) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

tangsongjun avatar Mar 09 '23 03:03 tangsongjun

@russellwheatley there is no any "Android Device Verification" API service in GCP, it is removed. Also adding SHA-1 & SHA-256 not working as well

OziTFA avatar Mar 09 '23 07:03 OziTFA

@OziTFA Screenshot 2023-03-09 at 10 41 49

It is deprecated, not removed. See documentation

Quote:

In the Google Cloud Console, enable the Android Device Verification (DEPRECATED) API for your project. The default Firebase API Key will be used, and needs to be allowed to access the DeviceCheck API.

russellwheatley avatar Mar 09 '23 10:03 russellwheatley

@russellwheatley Its removed if you create new firebase project I won't be available.

nicks258 avatar Mar 09 '23 11:03 nicks258

@russellwheatley ss

OziTFA avatar Mar 09 '23 11:03 OziTFA

Firebase sms authentication not working ( no otp sending) as device verification api is deprecated . What's the solution to this?

sivaprasadnk avatar Mar 09 '23 11:03 sivaprasadnk

any idea regarding this? same for me too

meshivanshsinghh avatar Mar 16 '23 06:03 meshivanshsinghh

Same issue using phone auth on android after setting up play integrity, opens browser with missing initial state error dialog

Technorocker avatar Mar 23 '23 15:03 Technorocker

I have enabled the play integrity and added SHA-1 and SHA-256. But I am getting the following error on android device. [Error: [auth/missing-client-identifier] This request is missing a valid app identifier, meaning that neither SafetyNet checks nor reCAPTCHA checks succeeded.

sachin3072004 avatar Mar 25 '23 06:03 sachin3072004

Can you check with the latest version of firebase_core 2.9.0. It contains fixes on the Android Native side that could fix this.

Lyokone avatar Mar 31 '23 08:03 Lyokone

Hey @snosey. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Apr 11 '23 01:04 google-oss-bot

still not working

renttooApp avatar Apr 15 '23 14:04 renttooApp

Hey @snosey. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Apr 25 '23 01:04 google-oss-bot

I'm integrating Play Integrity into my firebase app. And facing "This request is missing a valid app identifier, meaning that Play Integrity checks, SafetyNet checks, and reCAPTCHA checks were unsuccessful"

please help.

AndrewTran2018 avatar Apr 26 '23 04:04 AndrewTran2018