My Firebase sign in functions no longer work once my app is published to Play Store. Register methods work perfectly fine, however. Sign in works perfectly on iOS, my device while debugging (in both debug/release modes), and all emulators. What might be going on here?
I have added the SHA 1 key from the Play Store, and yes it's the correct one. In fact, I have added the SHA 1 Upload key and debug key to Firebase too (so 3 SHA 1 keys total). I confirmed these show up in the Google Developer Console too. Firebase is properly connected, but for whatever reason this is happening. Here's an example of one of my sign-in methods. I get hung up on signInWithEmailandPassword()...if there's an error (wrong password, for example) I do properly receive an error message. Otherwise, this method hangs forever.
//sign in with email & password
Future signInWithEmailAndPassword(String email, String password) async {
try {
final auth.UserCredential result = await _auth.signInWithEmailAndPassword(email: email, password: password);
final auth.User user = result.user;
if (user.emailVerified) {
return _userFromFirebaseUser(user);
}
else {
return user;
}
} catch(e) {
print(e.toString());
return null;
}
}
(In addition, my Google Sign-in dependency is wonky in release, and I get an error stating that there's some missing implementation (maybe a result from v2 embedding?) -- but that's an unrelated issue if it isn't related to a solution to my main question.)