Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I have a problem with connection with Google maps API V2 and Android. I' ve enabled services:

  • Google Maps Android API v2
  • Places API

Also I've added sha1 fingerprint.

enter image description here

But I still get this message: This IP, site or mobile application is not authorized to use this API key

I'm calling service from Android. Do you know where might be the problem, cause I don't know where to search.

like image 591
Mitja Rogl Avatar asked May 29 '14 16:05

Mitja Rogl


1 Answers

You must be creating a browser key instead of an android key. I faced similar problem when I accidentely created an android key for Google Cloud Messaging instead of a server key. Please check which key is required for your purpose. For google maps v2 you need android key and for google places api you need a server key(searched google but not so sure on this one never used it). So basically you need two keys.

Update: You need server key for places api.

like image 152
Illegal Argument Avatar answered Oct 19 '22 11:10

Illegal Argument