【发布时间】:2018-02-12 06:24:01
【问题描述】:
我面临着不同类型的问题。我在我的应用程序中使用 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;
}
对于其他号码,它正在工作并且正在生成验证和 forceResendingToken。
【问题讨论】:
标签: android firebase firebase-authentication