I'm trying to get user token id using new Google play services 8.3 and as documented I pass the server id:
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestIdToken(getString(R.string.server_client_id))
.requestEmail()
.build();
but I'm still getting un successful result as below:
{statusCode=unknown status code: 12501, resolution=null}
and documented here GoogleSignInStatusCodes
The sign in was cancelled by the user. i.e. user cancelled some of the sign in resolutions, e.g. account picking or OAuth consent.
Constant Value: 12501
which is not my case ,as I already picked an account. Any idea what could be the reason?
Aucun commentaire:
Enregistrer un commentaire