Firebase Phone Authentication verification failed

186 views
Skip to first unread message

Amna Shaikh

unread,
Jun 29, 2024, 9:52:14 AMJun 29
to Firebase Google Group
hi I am implementing firebase phone authentication in flutter. It works fine 20 days ago but now it is not working and give me error. I try with different devices and projects but same response.
Here is Error: [SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17499 Error code:39
Here is my  code:  void sendOTP(String phoneNumber) async {
    FirebaseAuth auth = FirebaseAuth.instance;
    ConfirmationResult confirmationResult ;
    await auth.verifyPhoneNumber(
      phoneNumber: phoneNumber,
      verificationCompleted: (PhoneAuthCredential credential) {
      },
      verificationFailed: (FirebaseAuthException e) {
        print("messeage");
        debugPrint('error message: ${e.message}');
        debugPrint('error code: ${e.code}');
        print(e.stackTrace);
      },
      codeSent: (String verificationId, int? resendToken) async {
      
      },
      codeAutoRetrievalTimeout: (String verificationId) {
        // Auto-retrieval failed, handle timeout
        print('Auto-verification timed out.');
      },
    );
  }

Abdurahmon Mamadiyorov

unread,
Jul 1, 2024, 5:42:13 PMJul 1
to fireba...@googlegroups.com
Hi bro, I am also facing this problem even though I am working with the documentation. This problem is not yours, Carriers blocked by firebase because they are slow in your country. You can use custom auth instead.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/16433e6d-679e-4e8f-b0b1-7b93c7fa7b35n%40googlegroups.com.

Ibrohim Abdivokhidov

unread,
Jul 2, 2024, 11:43:05 AMJul 2
to fireba...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages