Can I require an iPhone 5S for my app?

柔情痞子 提交于 2019-11-30 16:50:20

问题


I'm writing an app which requires the M7 Motion co-processor chip in the iPhone 5S. Since this chip isn't in any other iPhone, the app will only function properly on an iPhone 5S.

Is there any way to require that a user has an iPhone 5S before downloading my app? Sort of like how you can make an app iPad specific?

I am looking for a way to select the iPhone hardware requirement. Not the iOS version requirement.


回答1:


I spoke with Apple and the correct answer is at this time NO. You can not specify via Required device capabilities or otherwise that an iPhone 5S is required for a specific app. You can however state clearly in your app's description that it requires the iPhone 5S/M7 motion co-processor and Apple will accept it.




回答2:


Normally you would do something like this by adding the UIRequiredDeviceCapabilities key to your app's info.plist and specifying a value corresponding to the hardware feature you require. However, among the possible values listed here, there doesn't appear to be a value for the motion co-processor. Apple may still add one, but until then perhaps you could come up with a combination of those values that is unique to the iPhone 5S and specify that.




回答3:


You should add the key "Required device capabilities" - UIRequiredDeviceCapabilities to your app's main plist. By adding this key, you can define what are the app requirements.

Here you find the values available for this key: https://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW3



来源:https://stackoverflow.com/questions/18967996/can-i-require-an-iphone-5s-for-my-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!