如何使用谷歌地图在科尔多瓦的应用程序 [英] How to use Google Maps in Cordova app

查看:201
本文介绍了如何使用谷歌地图在科尔多瓦的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照这个指令。这〔实施例完全在浏览器中。但是,当我开始我的应用程序在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.

这篇关于如何使用谷歌地图在科尔多瓦的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆