Get refresh token google api
Found out by adding this to your url parameters approval_prompt=force Update: Use access_type=offline&prompt=consent instead. approval_prompt=force no longer works https://github.com/googleapis/oauth2client/issues/453
Found out by adding this to your url parameters approval_prompt=force Update: Use access_type=offline&prompt=consent instead. approval_prompt=force no longer works https://github.com/googleapis/oauth2client/issues/453
Look at LogCat and see what’s causing the verifyerror. It’s probably some method in a java.lang class that is not supported on the android SDK level you are using (for instance, String.isEmpty()).
The refresh_token is only provided on the first authorization from the user. Subsequent authorizations, such as the kind you make while testing an OAuth2 integration, will not return the refresh_token again. 🙂 Go to the page showing Apps with access to your account: https://myaccount.google.com/u/0/permissions. Under the Third-party apps menu, choose your app. Click Remove access … Read more