0
How does addOnCompleteListener work, it is not a System that will be called when the signInWithEmailAndPassowrd operation is executed? It enters a correct login and password and click on the button it reaches the task.addOnCompleteListener but 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());
}
}
});
Exactly. Old versions of Firebase Auth or Google Play Services start to show problems if they are not updated.
– Rosário Pereira Fernandes