Skip to content

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

Open
@mohsiniqbalcui

Description

@mohsiniqbalcui

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions