Home > Blockchain >  Not able to add onCompleteListener
Not able to add onCompleteListener

Time:01-15

private void createUserAcccount(String email, String name, String password) {
    mAuth.createUserWithEmailAndPassword(email, password)

I want to know after this is completed but when I add addOnCompleteListener it shows unable to resolve symbol. What is the solution to this?

CodePudding user response:

mAuth.createUserWithEmailAndPassword(emailpassword
            .addOnCompleteListener(task -> {
                //task completed
                if(task.isSuccessfull()) Log.d("signIn","success"); //sign in success
                else Log.d("signIn","fail") //sign in failed
            });

This will help you

  •  Tags:  
  • Related