I am using Firebase Authentication in an Android application, and I am using Google account authentication as an option to sign in to the application.
How can I know
This may help you and try it:
Correct code location to check Firebase if a user has been created already?
In Firebase UI, JAVA:
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
Intent i;
if (requestCode == RC_SIGN_IN) {
IdpResponse response = IdpResponse.fromResultIntent(data);
if (resultCode == RESULT_OK) {
if(response.isNewUser()){
Log.d(TAG, "onActivityResult: isNewUser "+response.isNewUser());
} else {
// Successfully signed in
}
// ...
} else {
// handle error
}
}
}