我正在尝试使用Firebase向我的应用程序添加匿名身份验证。但是这个错误不断重复:

这是我的密码:
firebaseAuth.signInAnonymously()
.addOnCompleteListener(task -> {
if (task.isSuccessful()) {
// Sign in success, update UI with the signed-in user's information
FirebaseUser user = firebaseAuth.getCurrentUser();
updateUI(user);
} else {
// If sign in fails, display a message to the user.
Toast.makeText(AnonymousLoginActivity.this, task.getException().getMessage(),
Toast.LENGTH_SHORT).show();
updateUI(null);
}
});我怎么才能解决这个问题?
发布于 2022-09-11 13:29:14
要使用Firebase匿名登录,必须从Firebase控制台启用匿名身份验证选项。

要启用匿名身份验证,请执行以下步骤:
G 210


authentication
保存后,您将看到匿名身份验证位于授权列表中,如下图所示。

这个程序对我有用。。
https://stackoverflow.com/questions/71474720
复制相似问题