Google Places API Key seems to expire immediately after one use

google-api, google-places-api

Solution

Figure out problem in android Do this in google developer console:

Create key for browser applications not for android application

Enable: Google Places API Web Service

Wait for approx 10 min till it approves

Sha key should be same

Note: Please check sha key as well they must be same on developer console as well as android app.

Problem

I recently generated a new Server API key using the Google API Console, for use with the Places API. I'm interested in using the Details API Call, and it worked as expected during my first request. Every subsequent request, however, has yielded this error: ``` { "error_message" : "The provided API key is expired.", "html_attributions" : [], "status" : "REQUEST_DENIED" } ``` The key is definitely not expired, since it was issued only minutes before and had worked just fine a few seconds ago. I've tried issuing new keys, but the result is always the same: works once, then never again. Any ideas? Thanks in advance.

Original source