Problem retrieving SafetyNet Token: 7: with Plan Integiry - flutter

I'm making an otp verification with the phone number in flutter with FireBase and it's well but when I send the number to the verification captcha its send an error: "Problem retrieving SafetyNet Token: 7:"
I'm making this with plan integrity, al ready put the SHA-256 and still the error it's here, may can disable the captcha? What can I do to solve this?

Related

AWS amplify (cognito) - change phone number during signup and verification

I have the "happy path" of signing up a user implemented using Flutter & AWS Amplify. I have made the user to verify their account using their phone numbers so that the verification code is sent to the phone and the signup process is completed.
I realised that, during testing, one could easily make a mistake. So I want the user to be able to go back and change the phone number so that the verification code is sent to the correct one. However, using Amplify, you cannot change the details if the user is not signed in, and the user cannot be signed in unless their account is "confirmed". Of course, their account cannot be "confirmed" if they don't receive the verification code and with the wrong phone number due to their mistake, they will never receive the verification code...
Has anyone faced the same problem and could help me how to solve this please?
I read that you could use Lambda functions to "auto-confirm" the account without any verification which means they can sign in, which would allow me to change their phone number if they have entered a wrong phone number. But I am not sure if this is the easiest way to do it

How to verify phone number using OTP without Authentication in Flutter

How to implement phone number verification in Flutter. In my app user is signed in via email, after the sign in process i need to add the phone number and verify it via OTP. I tried in Firebase the phone number verification is added with the authentication flow.
I don’t want to include the authentication flow, i just need to verify the number. How to implement this?
Please someone help me on this.
It is not possible to implement phone number verification without using Firebase Authentication as phone number verification is a feature within the Firebase Authentication system.

OTP [firebase_auth/unknown] null

I searched for days but couldn't find why am I getting this error.
E/FirebaseAuth(21984): [SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17499 Error code:39
I/flutter (21984): [firebase_auth/unknown] null
i receive this exception when i use my country phone number(Sudan) but when i add another country phone number they receive the SMS verification code.
1.i enabled the Phone Sign-in method in my firebase console.
2.added SHA1 and SHA256 of google play console,signingReport and even key store in my firebase console and uploaded the new google services.json .
3.enabled the Android DeviceCheck API for my project in google cloud console.
4.enabled play integrity in app check.
any help!
thank you in advance.
It seems that there is no way around it, due to the sanctions exposed in Sudan firebase or in fact all google services will not work unless you use a VPN.
Try with sinch or twilio

Firebase phone auth is not working even though it worked before

I am using phone firebase auth for my authentication, It worked as I developed my flutter app
for like 5 months or more, only yesterday it stopped working, I have tried several attempts to sign in using phone auth and it worked once then returned this error again. I have searched through the internet tried every solution I find and none worked.
W/System ( 5394): A resource failed to call end.
W/FirebaseAuth( 5394): [FirebaseAuthFallback:] App hash will not be appended to the request.
W/FirebaseAuth( 5394): [SmsRetrieverHelper] SMS auto-retrieval unavailable; SmsRetriever will not start.
W/System ( 5394): Ignoring header X-Firebase-Locale because its value was null.
W/FirebaseAuth( 5394): [SmsRetrieverHelper] Timed out waiting for SMS.
There's a limit for the number of sms you can recieve from firebase to one device
To prevent abuse, Firebase enforces a limit on the number of SMS messages that can be sent to a single phone number within a period of time. If you exceed this limit, phone number verification requests might be throttled. If you encounter this issue during development, use a different phone number for testing, or try the request again later
Please check this for reference
https://firebase.google.com/docs/auth/web/phone-auth

How do I change the number of login attempts in Firebase?

I am a mobile developer and I am using firebase for my app which have built with Cordova and Ionic framework.
So .. I implemented Firebase Auth functionalities such login/signup, email verification, forgot your password, ...
But I found this message today while logging in with app.
"We have blocked all requests from this device due to unusual
activity. Try again later."
How do I change the number of login attempts in Firebase?
You can't change login attempts.
A blocked user can retry after a few minutes.
Firebase SDK will throw errors you attempts like following:
multiple times wrong password attempts.
multiple create a new password, anonymous account tries
multiple password recovery tries