【发布时间】:2017-02-21 13:50:00
【问题描述】:
我正在使用 phonegap build 来构建适用于 iOS、Android 和 Windows 的应用程序。 如何指定(可能在 config.xml 中)phonegap 构建应该只为平板电脑构建,或者只为智能手机构建,或者同时为所有三个平台构建?
【问题讨论】:
我正在使用 phonegap build 来构建适用于 iOS、Android 和 Windows 的应用程序。 如何指定(可能在 config.xml 中)phonegap 构建应该只为平板电脑构建,或者只为智能手机构建,或者同时为所有三个平台构建?
【问题讨论】:
对于 iOS,您可以在 config.xml 中将 target-device preference 设置为“手机”:
<preference name="target-device" value="handset" />
对于 android,你需要 edit the manifest 在科尔多瓦 hook... 像 after_prepare 或 after_platform_add
对于 Windows...嗯...小丑!
【讨论】: