[英]Firebase Authentication console is not showing new users added
I implemented a simple login for users in my Android app with email/password.我在我的 Android 应用程序中使用电子邮件/密码为用户实现了一个简单的登录。 When I sign up a user their info would almost instantly show up on the Firebase console.
当我注册用户时,他们的信息几乎会立即显示在 Firebase 控制台上。 This no longer happens and I'm not able to delete users via the console.
这不再发生,我无法通过控制台删除用户。 It works completely fine on the iOS side, which uses the same Firebase project.
它在 iOS 端完全正常工作,它使用相同的 Firebase 项目。
Here is my code for creating a user.这是我创建用户的代码。
private void createAccount(String email, String password) {
if (!validateForm()) {
return;
}
mAuth.createUserWithEmailAndPassword(email, password)
.addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if (task.isSuccessful()) {
// Sign in success, update UI with the signed-in user's information
Log.d(TAG, "createUserWithEmail:success");
FirebaseUser user = mAuth.getCurrentUser();
Toast.makeText(getContext(), "User was successfully created.", Toast.LENGTH_SHORT).show();
sendEmailVerification();
EmailConfirmationFragment fragment = new EmailConfirmationFragment();
FragmentTransaction transaction = Objects.requireNonNull(getActivity()).getSupportFragmentManager().beginTransaction();
transaction.replace(R.id.registration_root, fragment)
.addToBackStack(null)
.commit();
} else {
Log.w(TAG, "createUserWithEmail:failure", task.getException());
Toast.makeText(getContext(), "Error detected. " + task.getException().getLocalizedMessage(), Toast.LENGTH_SHORT).show();
}
}
});
}
First, check your "AndroidManifest.xml" file.首先,检查您的“AndroidManifest.xml”文件。
<uses-permission android:name="android.permission.INTERNET" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.