How to use CORS to implement JavaScript Google Places API request

You are trying to use the Google Places API Web Service on client side whereas it is designed for server side applications. That’s probably why appropriate CORS response headers are not set by the server. As explained in the Notes at the beginning of the Place Details documentation, you should use the Places Library in … Read more

Questions re: Gmail Sidebar Gadget Deprecation

Google usually perform spring-cleanings. Usually announces around march-april which features will be removed, and by july-august performs removal. However marking a feature as deprecated does not necesarilly mean immediate removal. Also, maybe this is related to Google G-suite marketplace: https://gsuite.google.com/marketplace/ BTW: in any situation, combine something that “is crucial to our operation” and something that … Read more

OAuth2.0 token strange behaviour (Invalid Credentials 401)

Per the Google API docs on errors & error codes: https://developers.google.com/drive/handle-errors#401_invalid_credentials 401: Invalid Credentials Invalid authorization header. The access token you’re using is either expired or invalid. error: { errors: [ { “domain”: “global”, “reason”: “authError”, “message”: “Invalid Credentials”, “locationType”: “header”, “location”: “Authorization”, } ], “code”: 401, “message”: “Invalid Credentials” } } This matches your … Read more

Future of Google Location History API

I’ve discovered that I can dynamically load my location history for any date using the following url: https://maps.google.com/locationhistory/b/0/kml?startTime=1373666400000&endTime=1373752800000 by changing timestamps in “startTime” and “endTime” parameters. Unfortunately it’s in .kml and no granularity data is included. Come on, Google – Latitude has some devoted users who relay on it on daily basis, don’t kill it … Read more

Access to Google API – GoogleAccountCredential.usingOAuth2 vs GoogleAuthUtil.getToken()

The Google APIs Client Library for Java is as the name suggests a library for accessing Google APIs and it is available for several platforms such as Java (in general) and Android while the Google Play Services and GoogleAuthUtil is only available on Android. By looking at the wiki page of the project it is … Read more

How to correctly use Google Plus Sign In with multiple activities?

Reconnecting for each activity is absolutely fine. Broadly there are 3 ways I’ve seen of people implementing this: Implement mostly in a baseactivity, and have the others extend that. This is connect/disconnect in each activity, but with code in only one place. Implement connect/disconnect in a fragment, and include that in activities where auth is … Read more