简体   繁体   中英

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.

There are a few potential causes for this error:

  1. The phone number you are trying to send the SMS to may be incorrect or invalid. Make sure you are using a valid phone number in the correct format for your region.
  2. You may be using an incorrect API key or Firebase project. Make sure you are using the correct API key and project for your application.
  3. The phone number you are trying to send the SMS to may be blocked by Firebase. Firebase may block certain phone numbers if they have been used for abuse or spam in the past.
  4. There may be an issue with the Firebase server or.network. In this case, you may need to wait for the issue to be resolved before you can send the SMS verification code.

To troubleshoot this issue further, you can try the following steps:

  1. Double-check the phone number you are using to make sure it is correct and in the correct format.
  2. Check that you are using the correct API key and Firebase project for your application.
  3. If you are using a paid Firebase plan, check your usage limits to make sure you have not exceeded your monthly quota for SMS messages.
  4. Check the Firebase server status to see if there are any known issues that could be causing this error.

I hope this helps. Let me know if you have any other questions.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM