Michel Habib
Michel Habib

Reputation: 655

Google Maps API v3 api key

i am writing a cordova app, where i am using Google Maps API V3. Since this is going to run locally in a web view for each user, i assume that i need to create an api key for google maps api.

I created a new browser key last night, and i put in the referrers all possible urls: * 127.0.0.1/* localhost localhost:7000

but everytime i use it, i get an error saying: Google has disabled use of the Maps API for this application.

I don't want to use the workaround to simply remove the key, any clues?

Upvotes: 2

Views: 2342

Answers (3)

Juan Camilo Mejia
Juan Camilo Mejia

Reputation: 1012

I´not sure if the question is already answered, so this is my solution. After generate the key and remove all the Referers even "*", Go to Google Maps JavaScript API and enable the api.

Upvotes: 1

nelsonec87
nelsonec87

Reputation: 106

I believe you have to create an Key for Android instead of a Key for Browsers, then allow your app to use it in google console.

Upvotes: 1

Javier Abrego
Javier Abrego

Reputation: 462

Try removing all referers, if that doesn't work set referers to the value * as showed in the image below enter image description here

Upvotes: 0

Related Questions