Question

I am testing the Google Places API on an iOS 7 app.

When I send a request to the API I get a json result with the following error message:

This IP, site or mobile application is not authorized to use this API key.

To build the request, I went to the Google API console and generated my iOS API Key based on my application bundle.

I'm not using Google Maps or anything else on the app, just trying to make a request to the Places API.

Is there anything I'm missing?

PS: I copied the URL I'm using and changed the API key to the browser client key and tested it in Chrome and worked perfectly.

Was it helpful?

Solution

Have you tried using the browser client key inside the iOS app? From what I remember, the places API doesn't support iOS keys.

More info here: https://groups.google.com/forum/#!topic/google-places-api/Jlm15dG7eMA

And from the google api console docs: https://developers.google.com/console/help/#generatingdevkeys

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top