firebase createUserWithEmailAndPassword is not working in android

后端 未结 8 616
别跟我提以往
别跟我提以往 2021-01-14 15:09

I\'m trying to use the createUserWithEmailAndPassword method to create users but not able to do so. The OnAuthenticate method is being called but user object is

8条回答
  •  清歌不尽
    2021-01-14 15:29

    For me, the way I solved this issue was firstly to make sure that I had enabled Email/Password signInAuth in firebase

    lastly I made sure that the line

    mAuth.createUserWithEmailAndPassword(username,password)
                    .addOnCompleteListener(**SignUpActivity.this**, task -> { 
    

    ... }) had myactivity.this instead of this alone as the context

提交回复
热议问题