如何使用谷歌地图在科尔多瓦的应用程序

问题描述:

我按照这个指令。这〔实施例完全在浏览器中。但是,当我开始我的应用程序在Android手机上就提醒我说:谷歌已经禁止对此应用使用地图API。所提供的密钥不是有效的谷歌API密钥,或者没有授权谷歌地图的JavaScript API第3版本网站如果您是此应用程序的所有者,你可以了解这里获得有效的密钥:的https://developers.google.com/maps/documentation/javascript/tutorial#Obtaining_Key\".

I follow this instruction. This examle works perfectly in browser. But when I start my app in the android phone it alert me that "Google has disabled use of the Maps API for this application. The provided key is not a valid Google API Key, or it is not authorized for the Google Maps Javascript API v3 on this site. If you are the owner of this application, you can learn about obtaining a valid key here: https://developers.google.com/maps/documentation/javascript/tutorial#Obtaining_Key".

我的钥匙被允许从任何参照网址请求(*)。

My key is allowed requests from any referers (*).

问题是什么?

从参照网址看起来像如果我删除了它的工作原理'*'。所以,现在我的浏览器键引用者是空的。

Looks like it works when I remove '*' from referers. So now my browser key referer is empty.