我收到此错误
error D/error here: onerrror: com.google.firebase.FirebaseException: An
internal error has occurred. [ DEVELOPMENT_MODE_MISMATCH:Non-development
mode
Verification Proof given in development mode request. ]
电话验证
private void signInWithPhoneAuthCredential(PhoneAuthCredential credential) {
mAuth.signInWithCredential(credential)
.addOnCompleteListener(this, new OnCompleteListener<AuthResult> () {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if (task.isSuccessful()) {
..... add user to database ...
}
else {
Log.d("error here",task.getException());
}
}
}
}
我是新手,正在尝试学习。我尝试在这里搜索,但找不到任何有用的信息。我尝试更改SHA1密钥并替换了JSON文件,但仍无法正常工作
答案 0 :(得分:1)
这仅仅是因为也许您在Firebase控制台上添加了号码->
验证-> 登录方式->用于测试的电话号码字段
要解决此问题,只需从测试字段中删除该号码
对我有用。.