Search code examples
iosobjective-cgoogle-maps-sdk-ios

Keep receiving REQUEST_DENIED for Google Places for iOS


I keep receiving REQUEST_DENIED when trying to use Google Places Autocomplete for iOS.

The example link is https://maps.googleapis.com/maps/api/place/autocomplete/json?input=londo&location=45.647157,25.628332&key=AIzaSyCHRmOeUQCcI_1JbcWiJ (I have ommited some of the last characters of the key)

  1. Both Google Places API and Google Maps API are enabled from Google Developer Console
  2. I have a valid key in Credentials section, for which I also added my bundle identifier in the list of bundle identifiers
  3. The key is an iOS applications key, in Public API access section. It's valid and is created by me (owner)

Can anyone point me out to the good direction ? Thanks in advance.


Solution

  • I found the problem: you need to enable the Google Places Web Services as well and use the server key (Funny enough, this thing is not specified in any of their docs)