OTP [firebase_auth/unknown] null - flutter

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

Related

PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 12500: , null, null)

I am using google console for login with email. its works properly before I add my project to firebase.
I want to send notification to user so I added my project to firebase for notification and its work good. but the problem is when I login with google it gives this error "PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 12500: , null, null)".
I saw the SHA1 key in both the platform (google console and firebase) are different different SHA1 key for the same app. I tried to put same key in both the platform so its gives me error "The request failed because the Android package name and fingerprint are already in use"
Another problem is when i try to creat new SHA1 key so it will genrate same key asper last.
I am stuck in this problem please help me.
I am using real android device for testing.

Firebase OTP SMS has two codes, one for verification and another that's always the same for all users [duplicate]

Used Firebase Phone Auth in my Android app.
The sms contains extra characters ntEc9wgP0/J at the end of the template.
Tried setting FirebaseAuth.getInstance().setLanguageCode("en")
Template language is set to English in Firebase console.
What can be the reason behind this?
This is my sms code template in firebase console.
%LOGIN_CODE% is your verification code for %APP_NAME%.
Firebase Phone Auth itself is working absolutely fine. What am I missing here?
EDIT : image of problem
EDIT2 : how it should be
I also faced the same issue in my case auto retrieval hash was only coming when otp sms length was below 53 characters so i contacted firebase support team regarding this .
As per firebase support team "If this is Android traffic then this is the appended auto-retrieval hash. We use the SMS Retriever API . So this extra characters are expected because these are the auto-retrieval hash"
** To Increase the character length you can change your app name on the google console.

How to send SMS Verification code to user without using Firebase in Flutter

I am trying to send a **SMS verification code to a user in my app but i cant. Can any one help me, i will be very thankful to you kindly help me to resolve this issue **
Well since you not using API then you can either create this by using users sim card to send the verification message, I mean they would send a message like normal message but to their self, use below packages
https://pub.dev/packages/sms/
https://pub.dev/packages/otp/
https://pub.dev/packages/flutter_otp/

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

Get suggested invitees failed due to error code: 3

I'm trying to run App Invites demo on a kitkat device but it returns
Get suggested invitees failed due to error code: 3
and soon after
Create invitations failed to error code: 3
What kind of error is it? Where i can find an error list?
In my experience, this happens when the SHA-1 signature of your app is not compatible with the Android API key specified in the Google Developer Console
If you don't care which app invites you, then you might want to consider removing app/signature restrictions. Otherwise, simply add them.
Log onto Firebase Console: https://console.firebase.google.com
You will need to click on the "Add Fingerprint" button and then add on your SHA1 key. You do not need to redownload your google-services.json, you just need to add the SHA1 key.
Try sending an app invite from your app. It will now work.