限制应用商店中的移动应用程序

Restrict mobile application on App Store

本文关键字:移动 应用程序 应用      更新时间:2023-09-26

我正在开发一个移动应用程序,我们想限制访问。我正在使用Phonegap Build并在config.xml文件上设置配置。有一个名为 target-device(仅适用于 iOS)的属性可以设置为 handsettabletuniversal,它应该根据设备阻止应用安装。

将其设置为 handset 会降低应用程序在智能手机和平板电脑设备上运行,但这不是我想要的。这种行为在App Store上是相同的,还是仅限于智能手机?

编辑:此问题仅适用于iOS设备

我相信

您所说的config.xml文件适用于PhoneGap Build,它与常规PhoneGap(现在Cordova)不同。

根据他们在PhoneGap Build config.xml上的文档,它指出target-device设置仅适用于iOS版本,因此此设置不会用于您的Android版本。

https://build.phonegap.com/docs/config-xml

target-device with possible values handset, tablet, or universal
     example: <preference name="target-device" value="universal" />
     please note that this currently only applies to iOS builds; by default all builds are universal

我认为你最好的选择是使用Eclipse,Android SDK等和PhoneGap(Corvoda)而不是PhoneGap Build服务,因为它会给你你想要的控制。有关设置说明,请参阅:

http://docs.phonegap.com/en/1.8.1/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android