Google 地图 API 未加载 iPad

Google Maps API Not Loading On iPad

我有一个使用 Google 地图 API 加载自定义地图的网页。该地图适用于所有主流浏览器的 Windows 和 Mac,但不适用于 iPad。我已经在 Safari Mobile 和 Chrome Mobile 上对其进行了测试,并且发生了同样的问题。没有任何显示,我在控制台中收到以下错误:

[Error] Failed to load resource: The certificate for this server is invalid. 
You might be connecting to a server that is pretending to be “maps.gstatic.com” 
which could put your confidential information at risk. (main.js, line 0)

任何关于这意味着什么的帮助将不胜感激。谢谢

我发现问题出在我们使用的是 HTTP 协议。在向 API 发出请求时使用 HTTPS 协议解决了 iPad 上的问题。

我遇到了同样的问题。但我的情况与@dcod 正好相反,我的应用程序的开发版本是 http://,因此我需要使用 maps.google.com 的 http://。

我将更新生产中的行为,应用程序将成为 https://