我們的要求無法使用火力驗證模塊
註冊使用電子郵件/密碼與火力地堡SDK在Android
問題
的的onComplete()方法不獲取調用登記。沒有錯誤/異常被拋出。 注:我們已經啓用了火力地堡控制檯上的電子郵件/密碼提供商
請找到下面的代碼 -
public void onClick(View v) {
try {
if (v == saveView) {
String email = emailView.getText().toString();
String password = passwordView.getText().toString();
if (validate(email, password)) {
mAuth.createUserWithEmailAndPassword(email, password)
.addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
Log.d(TAG, "createUserWithEmail:onComplete:" + task.isSuccessful());
// If sign in fails, display a message to the user. If sign in succeeds
// the auth state listener will be notified and logic to handle the
// signed in user can be handled in the listener.
if (!task.isSuccessful()) {
Toast.makeText(UserRegisterActivity.this, "Authentication failed.",
Toast.LENGTH_SHORT).show();
}
}
});
}
}
}catch (Exception e) {
Log.d("BIG", e.getStackTrace().toString());
}
}
private boolean validate(String email , String password){
return true;
}
是問題解決了嗎?我正面臨與相同的問題 – Prabs
面對與我的一些用戶相同的問題,他們中的一些人成功了一些不......您是否有任何解決方案到目前爲止 –