简体   繁体   English

Firebase 身份验证控制台未显示添加的新用户

[英]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.

相关问题 Firebase 身份验证 - 在控制台中创建用户但进度条不会停止旋转并且任务未完成? - Firebase authentication - users being created in console but progress bar won't stop spinning and the task is not completed? Firebase Analytics未显示在控制台中 - Firebase Analytics not showing up in console 如何修改用户 firebase 身份验证令牌声明? - How to modify a users firebase authentication token claims? 通过微软进行 Firebase 身份验证 - 登录选项卡未显示 - Firebase authentication via microsoft - Login tab not showing 创建新用户时出现Cassandra身份验证错误 - Cassandra Authentication error in creating a new users Firebase 自定义事件参数未显示在 Firebase Analytics 控制台中 - Firebase custom event parameters not showing in Firebase Analytics console Firebase 分析在使用 Firebase 选项时未显示在控制台中 - Firebase Analytics Not showing in console while using Firebase Option Firebase身份验证后开始新活动 - start new activity after firebase authentication Firebase身份验证-防止用户同时登录一个帐户 - Firebase authentication - prevent users login one account same time 为每个经过身份验证的新用户创建新的 Firebase 数据库存储 - Create New Firebase Database storage for each new authenticated users
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM