更新时间:2023-12-02 12:45:52
您的代码似乎离正式的 firebase文档
Your code seems to be far from oficial firebase documentation
mAuth.signInAnonymously().addOnCompleteListener
onComplete()
中的Task.isSuccessful()
是否为真,如果不是,则返回task.getException()
.mAuth.signInAnonymously().addOnCompleteListener
onComplete()
observe whether Task.isSuccessful()
is true and if not what task.getException()
return.如果您真的想知道为什么FirebaseUser
是null
的原因,请阅读
If you really want to know why your FirebaseUser
is null
, then read firebase docs
如果您发布例外情况,我可以为您提供帮助.
If you post the exception I can help you.