Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Google Places API: "This IP, site or mobile application is not authorized to use this API key"

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.

like image 707
jsan Avatar asked Apr 18 '14 22:04

jsan


1 Answers

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

like image 107
Joel Bell Avatar answered Nov 15 '22 21:11

Joel Bell