Given a email address, is it possbile to get userID of a person? For example,
If I have a variable email that has email of the person. Can I get their ID by doing so
Firebase do not provide user info on the basis of email. You can do one thing make login with your credential and after successful login use below code to get details of user.
FirebaseUser currentFirebaseUser = FirebaseAuth.getInstance().getCurrentUser();
if(currentFirebaseUser !=null)
{
Log.d(TAG, "onComplete: currentUserUid---->" + currentFirebaseUser.getUid());
Log.d(TAG, "onComplete: currentUserEmail---->" + currentFirebaseUser.getEmail());
Log.d(TAG, "onComplete: currentUserDisplayName---->" + currentFirebaseUser.getDisplayName());
} else
{
Log.d(TAG, "onComplete: currentUserUid is null");
}