Firebase Createuserwithemailandpassword Is Not Working In Android
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 null and no user is
Solution 1:
I had this problem too. The password I was testing the app with was just too short. I extended it to a longer password and it worked. You have to meet google's password complexity standards.
Solution 2:
I spent 2 days searching for this solution, only to find out it is because of the emulator. Try to use a smartphone to run your app. For me it worked.
Solution 3:
I have the same problem.
change:
mAuth.createUserWithEmailAndPassword("9199999989@pintech.com", "corrfecthorsebatterystaple")
.addOnCompleteListener(this, newOnCompleteListener<AuthResult>()
to:
mAuth.createUserWithEmailAndPassword("9199999989@pintech.com", "corrfecthorsebatterystaple")
.addOnCompleteListener(MainActivity.this, newOnCompleteListener<AuthResult>()
Solution 4:
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
Post a Comment for "Firebase Createuserwithemailandpassword Is Not Working In Android"