firebase / FirebaseUI-Android

Optimized UI components for Firebase
https://firebaseopensource.com/projects/firebase/firebaseui-android/
Apache License 2.0
4.61k stars 1.83k forks source link

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

Open mohsiniqbalcui opened 8 months ago

mohsiniqbalcui commented 8 months ago

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?

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

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:

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'

thatfiredev commented 8 months ago

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.

ba138 commented 8 months ago

"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

thatfiredev commented 8 months ago

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

codenaveed commented 5 months ago

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

MufakirMairaj commented 5 months ago

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

Ashad-sadiq commented 4 months ago

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?

Waleed065 commented 4 months ago

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 commented 4 months ago

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
MufakirMairaj commented 4 months ago

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. "

SheikhSaad commented 3 months ago

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