PhoneGap,嵌入式 Google 地图未显示在 Android 构建中

PhoneGap, Embedded Google map is not showing in Android Build

我已经创建了 phonegap 项目并添加了一个 html 标签:

<iframe width="600" height="450" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q=Sydnew%20Opera%20House&key=MY_KEY" allowfullscreen></iframe>

当我启动 PhoneGap Desktop 时,嵌入的 Google 地图在我的浏览器中成功显示。但是,当我为 Android 构建它时,地图不显示。

在我的 config.xml 中,我添加了以下几行标签:

<access origin="*"/>
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />

它已经有上网权限。为什么会这样?

更新

我在 config.xml:

中添加了这行代码
<allow-navigation href="https://www.google.com/maps/embed/*" />

仍然没有显示。

我已经解决了这个问题。

当我将此插件添加到我的 confix.xml 文件后,所有 access 之类的标签开始工作:

<plugin name="com.indigoway.cordova.whitelist.whitelistplugin" source="pgb" />

然后我将我的项目上传到 PhoneGap Build 网站并下载了应用程序。