I am creating an authentication workflow for my Android application. I allow users to login with username / password and various OAuth providers. I check emails and password, so I know that the information that I transmit to Firebase is valid. I am using com.google.firebase:firebase-auth:9.6.1
When I execute the following code, I get a callback that says the operation failed with an error.
mFirebaseAuth.signInWithEmailAndPassword(username,password).addOnCompleteListener(this);
Callback function or completion listener inform me
com.google.firebase.FirebaseNetworkException: A network error (such as timeout, interrupted connection or unreachable host) has occurred.
The username I pass in does not exist yet. So, I would suggest some kind of error indicating that the user does not exist . Am I transferring something incorrectly or mistakenly accepting it? I also see that in the Firebase documentation, the iOS library contains various error codes common to all API sections, where this is not displayed in the Android section. One of these exceptions is FIRAuthErrorCodeUserNotFound . So, does this functionality even exist in the Android library?
java android firebase firebase-authentication
Landen
source share