Open spiraldevapps opened 3 years ago
This is a bug - everything was working fine and then since last 4 weeks we are facing this issue.
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestIdToken(Constant.serverclientid) // required to get accesstoken .requestScopes(new Scope(GmailScopes.MAIL_GOOGLE_COM)) .requestEmail() .build(); GoogleApiClient gApiClient = new GoogleApiClient.Builder(getApplicationContext()) .addApi(Auth.GOOGLE_SIGN_IN_API, gso) .build(); ConnectionResult c = gApiClient.blockingConnect(); if (c.isSuccess() && gApiClient.isConnected()) { Log.e(TAG,"connectionResult = success"); gApiClient.clearDefaultAccountAndReconnect().await(); } else { Log.e(TAG,"connectionResult is failure"); } GoogleSignInClient mGoogleSignInClient = GoogleSignIn.getClient(getApplicationContext(), gso); mGoogleSignInClient.revokeAccess(); // Intent signInIntent = mGoogleSignInClient.getSignInIntent(); Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(gApiClient); runOnUiThread(new Runnable() { @Override public void run() { Log.d(TAG,"request account picker"); Aloading_spinner.setVisibility( View.GONE ); startActivityForResult(signInIntent, REQUEST_ACCOUNT_PICKER); } });
Having same problem, do we have any solution?
Also experiencing this issue. Does this happen due to requests cooldown during a series of consecutive closures? Maybe 2FA?
Step 1: Are you in the right place?
This is a bug - everything was working fine and then since last 4 weeks we are facing this issue.
Step 2: Describe your environment
Step 3: Describe the problem:
Steps to reproduce:
Observed Results:
Expected Results:
Relevant Code: