gpt4 book ai didi

javascript - iOS 混合应用程序 - Google map API 错误 : RefererNotAllowedMapError

转载 作者:行者123 更新时间:2023-11-28 18:52:38 26 4
gpt4 key购买 nike

enter image description here iOS 混合应用程序 - Google Maps API 错误:RefererNotAllowedMapError

我们正在开发一款 iOS 混合应用。

  1. 我们有 index.html 并使用我们打包并捆绑为应用程序的 cordova phone gap。

  2. 我们还为 google maps api 创建了一个新 key 。

添加新的 map API 后,它给出错误 Google Maps API 错误:RefererNotAllowedMapError。

由于我们的应用是混合应用,因此我们没有 Index.html 的托管 URL

因此,我们使用 iOS 包标识符为 google Maps Javascript api 生成了 Api key 。

请帮忙。

最佳答案

按照以下步骤操作后效果很好:

  1. 编辑 API key 。
  2. 在应用程序限制下选择:HTTP 引荐来源网址(网站)。
  3. 在接受来自这些 HTTP 引荐来源网址的请求下,插入带有以下字符的域:*
  4. 点击保存。

关于javascript - iOS 混合应用程序 - Google map API 错误 : RefererNotAllowedMapError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38003058/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com