public void checkEmailExistsOrNot() {
FirebaseAuth.fetchSignInMethodsForEmail(emailET)
.addOnCompleteListener(new OnCompleteListener<SignInMethodQueryResult>() {
@Override
public void onComplete(@NonNull Task<SignInMethodQueryResult> task) {
boolean isNewUser = task.getResult().getSignInMethods().isEmpty();
if (isNewUser) {
Log.e("TAG", "Is New User!");
} else {
Log.e("TAG", "Is Old User!");
}
}
});
On the code: fetchSignInMethodsForEmail
Non-static method 'fetchSignInMethodsForEmail(java.lang.String)' cannot be referenced from a static context