I'm following google instruction to add sign in with google button to my app. If I request sign in without requestEmail()
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.build();
It returns the result as successful. But if I request email, it occures an INTERNAL_ERROR
as the status.
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestEmail()
.build();
returns
E/Result: Status{statusCode=INTERNAL_ERROR, resolution=null}
I'm stuck here. Any help highly appreciated. Please comment if you need further information about the code. Thank you