Google Maps API v3 api key

让人想犯罪 __ 提交于 2019-12-22 12:25:43

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!