我正面临着一些不同类型的问题.我在我的应用程序中使用Firebase Mobile编号身份验证.当我尝试将OTP发送到我正在使用的同一个手机号码时,OTP不会发送.但是,如果我从我的移动OTP向其他手机发送OTP正在发送.我还发现如果我从其他手机发送OTP到我的号码OTP即将到来.因此,没有手机号码的问题.在调试时我发现这个代码块不起作用
@Override
public void onCodeSent(String verificationId, PhoneAuthProvider.ForceResendingToken forceResendingToken) {
super.onCodeSent(verificationId, forceResendingToken);
Log.e(TAG, "onCodeSent: s - " + verificationId + " : t - " + forceResendingToken);
xVerificationId = verificationId;
}
Run Code Online (Sandbox Code Playgroud)
对于其他数字,它正在工作,验证和forceResendingToken正在生成.