问题
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?
回答1:
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.
回答2:
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.
回答3:
Try removing all referers, if that doesn't work set referers to the value * as showed in the image below
来源:https://stackoverflow.com/questions/23949725/google-maps-api-v3-api-key