使用 phonegap 构建服务的插件 plugin.google.maps 在 ios 上不起作用
plugin plugin.google.maps using phonegap build service doesnt work on ios
我有一个使用插件 plugin.google.maps (https://github.com/wf9a5m75/phonegap-googlemaps-plugin) 的小项目。
此外,我使用 phonegap buid 服务,而不是 CLI。
在 config.xml 文件中我有代码
<gap:plugin name="plugin.google.maps" source="plugins.cordova.io" version="~1.2.4">
<param name="API_KEY_FOR_ANDROID" value="xxx" />
<param name="API_KEY_FOR_IOS" value="xxx" />
</gap:plugin>
Android apk 很有魅力,但在 ios 设备上我收到消息
"Api 键未设置。
请用您的 API 密钥替换 platforms/ios/.../...Info.plist 中的 'API_KEY_FOR_IOS'。"
有人知道我如何使用 phonegap 构建服务解决这个问题吗?
尽管这应该有效
(https://github.com/wf9a5m75/phonegap-googlemaps-plugin/issues/411#issuecomment-75452290)
几天后,简而言之,我想我必须覆盖 plist 键 "Google Maps API Key" 的 ios 属性 列表的说明。
因此,在 config.xml 中我插入了代码:
<gap:config-file platform="ios" parent="Google Maps API Key" mode="replace">
<string>xxx</string>
</gap:config-file>
其中 xxx 是 Google 地图 API 键 iOS
http://docs.build.phonegap.com/en_US/configuring_config_file_element.md.html
我有一个使用插件 plugin.google.maps (https://github.com/wf9a5m75/phonegap-googlemaps-plugin) 的小项目。
此外,我使用 phonegap buid 服务,而不是 CLI。
在 config.xml 文件中我有代码
<gap:plugin name="plugin.google.maps" source="plugins.cordova.io" version="~1.2.4">
<param name="API_KEY_FOR_ANDROID" value="xxx" />
<param name="API_KEY_FOR_IOS" value="xxx" />
</gap:plugin>
Android apk 很有魅力,但在 ios 设备上我收到消息
"Api 键未设置。 请用您的 API 密钥替换 platforms/ios/.../...Info.plist 中的 'API_KEY_FOR_IOS'。"
有人知道我如何使用 phonegap 构建服务解决这个问题吗?
尽管这应该有效
(https://github.com/wf9a5m75/phonegap-googlemaps-plugin/issues/411#issuecomment-75452290)
几天后,简而言之,我想我必须覆盖 plist 键 "Google Maps API Key" 的 ios 属性 列表的说明。
因此,在 config.xml 中我插入了代码:
<gap:config-file platform="ios" parent="Google Maps API Key" mode="replace">
<string>xxx</string>
</gap:config-file>
其中 xxx 是 Google 地图 API 键 iOS
http://docs.build.phonegap.com/en_US/configuring_config_file_element.md.html