Closed yousefak007 closed 1 year ago
Hi @darshankawar, I'm sorry to bother you, but this issue is very annoying. There is still no clear solution for it. I have published my app on the Google Play Store and released the official version. However, the SMS code issue is still present. Only test numbers are working. I have tried many solutions, but none of them have worked. I am not sure what else to do. I would appreciate your help in resolving this issue. Thank you for your time.
Hi @yousefak007, is the country you're testing from in this list? https://firebase.google.com/support/faq#phone-auth-countries
Please note that not all countries are supported for phone authentication.
Hi @danagbemava-nc ,
Thanks for your response. I appreciate you taking the time to help me with this issue.
My country is Yemen, which is one of the available countries for Firebase Auth.
I tried to download the Firebase Auth example and linked it to a new account, but it didn't work. It was previously working with the Android Device Verification and SafetyNet service.
Hi @yousefak007, can you take a look at these to see if they help with your issue?
https://github.com/firebase/flutterfire/issues/10777#issuecomment-1535972513 https://stackoverflow.com/questions/76386725/smsretrieverhelper-sms-verification-code-request-failed-unknown-status-code-17
Hi @danagbemava-nc ,
Thank you for your time.
I have indeed tried some of these steps before, and they did not work for me. I have checked them again, and I also uploaded a new version to the Google Play Store after the changes.
Here are the steps I took in order:
Meanwhile, my app is currently under review. I will update you on the status after it is approved and I have had a chance to test it.
Thank you again
Run flutter doctor
and paste the output below:
Run flutter pub deps -- --style=compact
and paste the output below:
Hello again @danagbemava-nc,
My app was accepted in the store a little while ago, and I tested it, but unfortunately the same previous message and the same error, nothing has changed!
Hi @yousefak007, what plan are you using on firebase?
Do you still have the following lines in your logs?
E/FirebaseAuth(27490): [SmsRetrieverHelper] SMS verification code request failed: unknown status code: 18002 Invalid PlayIntegrity token; app not Recognized by Play Store.
E/FirebaseAuth(27490): [SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17499 Error code:39
I/flutter (27490): [firebase_auth/unknown] An internal error has occurred. [ Error code:39 ]
Hi @danagbemava-nc,
Hi @yousefak007, what plan are you using on firebase?
I am using Spark
Do you still have the following lines in your logs?
Yes, the following logs are from a few seconds ago:
2023-09-13 13:55:23.004 ١٧٦٥٠-١٩٠٥٩ FirebaseAuth com.godev.mufex E [SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17499 Error code:39
2023-09-13 13:55:23.015 ١٧٦٥٠-١٧٦٥٠ FirebaseAuth com.godev.mufex D Invoking original failure callbacks after phone verification failure for +967xxxxxxxxx, error - An internal error has occurred. [ Error code:39 ]
2023-09-13 13:55:23.017 ١٧٦٥٠-١٧٧٧٧ flutter com.godev.mufex I [firebase_auth/unknown] An internal error has occurred. [ Error code:39 ]
Hi @yousefak007, have you tried reaching out to firebase support?
From what I'm seeing only the error code 39 seems to be that you have hit a limit for OTPs or that the app has been temporarily blocked for too many requests
From what I'm seeing only the error code 39 seems to be that you have hit a limit for OTPs or that the app has been temporarily blocked for too many requests
Hi @danagbemava-nc ,
Thank you for your time and effort. I appreciate it.
I've already contacted Firebase support and they've said they'll get back to me within 2 business days. I'm currently waiting for their response.
It's strange that I'm getting this error code in more than one project. I've also tried upgrading my Firebase account, but that didn't resolve the issue. I downgraded my account after that didn't work.
I'll keep you updated as soon as I hear back from Firebase support.
Thanks
Hey @yousefak007. 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!
I am currently working on resolving the issue with Firebase support. I have provided them with all the necessary information and am awaiting their response.
Hi @danagbemava-nc ,
Thank you for your help with the verification issue.
I wanted to update you on the verification issue we were discussing.
I finally received a response from Firebase support after a long back-and-forth with them. They clearly told me that the issue is with the local carriers. They are the ones who are not sending us the verification message. This error message appears: "[firebase_auth/unknown] An internal error has occurred. [ Error code:39 ]". In other cases, different error messages appear, but less frequently than the previous message.
I am currently working on connecting my application directly to SMS services with local carriers. I am also investigating the possibility of using other Firebase services, such as creating an account via Google or email, etc.
Hi @yousefak007, thanks for the update.
Unfortunately, since this is an issue with the local carriers, this is out of scope for this repo.
As such I'll be closing this issue.
If you do face any more issues, please do not hesitate to file a new issue.
Thank you
Bug report
Describe the bug I am encountering an issue with Firebase phone authentication where the SMS verification code is not being sent and I am receiving error code 17499. Error code 17499 indicates an internal error with the message "Error code:39".
I have already tried several troubleshooting steps such as:
Despite these steps, I am still facing the issue. However, using a test phone number works without any issues.
Can someone please help me resolve this issue? Any help would be greatly appreciated. Thank you.
Additional context
Logs
Flutter dependencies