How does the addOnCompleteListener work, is it not a listener that will be called when the signInWithEmailAndPassowrd operation is executed? It enters a correct login and password and I click on the button it arrives until the task.addOnCompleteListener but it does not enter the onComplete method.
Task<AuthResult> task = mFirebaseAuth.signInWithEmailAndPassword(user.getEmail(), user.getPassword());
task.addOnCompleteListener(new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
Task<AuthResult> taskUser = task;
Log.i("app", "Sucesso - " + taskUser.isSuccessful());
if (taskUser.isSuccessful()) {
booSucessLogin = true;
mFirebaseInteractionLogin.sucessSiginUp(user);
}else{
booSucessLogin = false;
Log.i("app", "Falha - " + taskUser.getException().toString());
mFirebaseInteractionLogin.errorSiginUp("The email address is badly formatted", taskUser.getException());
}
}
});