FirebaseUI-Android icon indicating copy to clipboard operation
FirebaseUI-Android copied to clipboard

Only Telenor network operator Number is getting error 39 on requesting otp

Open mohsiniqbalcui opened this issue 2 years ago • 16 comments

Welcome to FirebaseUI and thanks for submitting an issue!

Please take a look at open issues, as well as resolved issues, to see if your issue is either already being addressed, or has been solved by someone else.

If not, please feel free to fill in the following info so we can help faster!

Step 1: Are you in the right place?

  • For issues or feature requests related to the code in this repository file a GitHub issue.
  • For general technical questions, post a question on StackOverflow tagged appropriately.
  • For general Firebase discussion, use the firebase-talk google group
  • For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel

Step 2: Describe your environment

Only Telenor network operator Number is giving error 39 in pakistan all other network are working fine and receving otp. IMG-20231006-WA0037

  • Android device: Emulator and Physical
  • Android OS version: 5.0 and above
  • Google Play Services version: 23.37.17
  • Firebase/Play Services SDK version: 20.4.0
  • FirebaseUI version: 21.1.0

Step 3: Describe the problem:

Steps to reproduce:

  1. Download this app https://play.google.com/store/apps/details?id=com.app.bikjaa
  2. In Welcom screen press button "login with phone"
  3. Enter any Telenor number staring from (034..........) with selecting pakistan as country code +92
  4. [0340 7795694] [0343 7340100] [0347 1447099] [0342 4215519] with selecting pakistan as country code +92
  5. error code 39 come
  6. Run the app in both emulator or physical device

Observed Results:

  • What happened? This could be a description, logcat output, etc. In mobile error 39 comes

[SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17499 Error code:39 AuthUI E A sign-in error occurred. com.google.firebase.FirebaseException: An internal error has occurred. [ Error code:39 ] at com.google.android.gms.internal.firebase-auth-api.zzxc.zza(com.google.firebase:firebase-auth@@21.1.0:6) 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:233) at android.os.Looper.loop(Looper.java:334) at android.app.ActivityThread.main(ActivityThread.java:8399) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:582) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1068)

Expected Results:

otp should be sent to user

Relevant Code:

// code here to reproduce the problem

/**
 * Funtions for login using Mobile OTP
 */
//
private fun verifyMobileNumber() {
    // Choose authentication providers
    val providers = mutableListOf(
            PhoneBuilder().setDefaultCountryIso("PK").build()
    )
    // Create and launch sign-in intent
    startActivityForResult(
            AuthUI.getInstance()
                    .createSignInIntentBuilder()
                    .setAvailableProviders(providers)
                    .setTosAndPrivacyPolicyUrls("https://bikjaa.pk/pages/terms-of-use",
                            "https://bikjaa.pk/pages/privacy-policy")
                    .setAlwaysShowSignInMethodScreen(true)
                    .setTheme(R.style.OTPTheme)
                    .build(),
            APP_REQUEST_CODE
    )
}

my build.gradle file is implementation 'com.google.android.gms:play-services-location:17.0.0' implementation 'com.google.android.gms:play-services-maps:17.0.0' implementation 'com.google.android.gms:play-services-wallet:19.1.0' implementation 'com.google.android.libraries.places:places:3.0.0' implementation 'com.google.android.gms:play-services-auth:20.4.0' implementation 'com.google.firebase:firebase-messaging:23.1.1' implementation 'com.google.firebase:firebase-core:21.1.1' implementation ('com.google.firebase:firebase-auth:21.1.0') { exclude module: "play-services-safetynet" } implementation 'com.firebaseui:firebase-ui-auth:7.0.0'

mohsiniqbalcui avatar Oct 10 '23 08:10 mohsiniqbalcui

Hey @mohsiniqbalcui

Code 39 indicates that you have tried too many times, as explained here. Can you please wait a few minutes for it to cool down and try again?

If the problem persists or if you think this is only related to that network operator, please contact Firebase support, as that issue doesn't seem to be related to FirebaseUI-Android directly. You can reference this github issue when you fill the support form to help them understand the problem.

thatfiredev avatar Oct 10 '23 09:10 thatfiredev

"I have encountered this issue multiple times, and despite several attempts, it has not been resolved. Interestingly, the application functions properly when using a different network, such as Zong, but the problem persists when using the Telenor network

ba138 avatar Oct 24 '23 09:10 ba138

@ba138 Please contact Firebase support they should be able to address the issue.

thatfiredev avatar Oct 24 '23 14:10 thatfiredev

Hi Dears, have you found the solution for this issue? I am facing same issue with ONLY Telenor numbers.

codenaveed avatar Jan 10 '24 14:01 codenaveed

I am facing the issue from last 6 months both Ufone and Telenor phone numbers.

MufakirMairaj avatar Jan 16 '24 05:01 MufakirMairaj

Is there a solution for this? Our application is stuck in production and there is no way for our users to login! Ive tried loging from different operators: OTP is not being received on: Ufone, Telenor. OTP is being received on: Jazz, Zong, Warid. as of 21st Feb 2024

Who should i contact to get this issue resolved ASAP?

Ashad-sadiq avatar Feb 21 '24 05:02 Ashad-sadiq

I am facing the issue from last 6 months both Ufone and Telenor phone numbers.

Same, Facing issue for both telenor and ufone numbers in Pakistan

Waleed065 avatar Feb 29 '24 18:02 Waleed065

Is there a solution for this? Our application is stuck in production and there is no way for our users to login! Ive tried loging from different operators: OTP is not being received on: Ufone, Telenor. OTP is being received on: Jazz, Zong, Warid. as of 21st Feb 2024

Who should i contact to get this issue resolved ASAP?

Contact firebase support from the firebase account that has the issue Screenshot 2024-02-29 at 11 06 34 PM

Waleed065 avatar Feb 29 '24 18:02 Waleed065

Is there a solution for this? Our application is stuck in production and there is no way for our users to login! Ive tried loging from different operators: OTP is not being received on: Ufone, Telenor. OTP is being received on: Jazz, Zong, Warid. as of 21st Feb 2024 Who should i contact to get this issue resolved ASAP?

Contact firebase support from the firebase account that has the issue Screenshot 2024-02-29 at 11 06 34 PM

I had a long conversation with firebase team they asked me logs, carrier, time and phone numbers. I shared the recorded video as well. There answer was. Here it is "Thank you for the information. I have discussed the matter with our engineering team, and they have confirmed that Telenor carrier is currently unavailable for SMS due to service reliability issues. I understand that this is an important feature for your application, however we are unable to unblock this from our side. "

MufakirMairaj avatar Mar 01 '24 15:03 MufakirMairaj

Do we have any further update on this, I've been facing this issue and right now I've changed the OTP verification method.

SheikhSaad avatar Mar 15 '24 15:03 SheikhSaad

I am facing the same issue from Togo carriers are MOOV and TOGOCEL.

stMerlHin avatar Jul 17 '24 22:07 stMerlHin