1

I don't know what to do, App was working well and performing sms verification few hours ago, I just came back but the same didn't work. Now it's not even sending the sms because resend token is null,

@Override
        public void onCodeSent(String verificationId, PhoneAuthProvider.ForceResendingToken token) {
            Utility.log("onCodeSent: " + verificationId);
            Utility.log("token: " + token);
            pbVerify.setVisibility(View.GONE);
            mVerificationId = verificationId;
            mResendToken = token;

        }

This method is not calling since because mResendToken is null, I have checked permission those are ok. It was working perfect 8 hours ago.

Ikram Khan Niazi
  • 789
  • 6
  • 17

1 Answers1

0

Sometimes Firebase restrict certain numbers for excessive login usage. You can go to Authentication >> Sign-In Method >> Select " Phone " >> Then add the number you are using for testing with a "default code" which you will use as the verification code during your sign in authentication. After adding your number and default code click on Save, and after that you can easily test authentication from your number.

Below are some screenshots to help you how to add your number for testing Firebase Authentication.

procedure to add your number for testing

example of how to add your number