简体   繁体   中英

Can we restrict download or launch of an universal app in iPad 1 alone?

I have a universal app, it supports both iPad and iPhone. I do not want the app to be downloaded or launched in iPad 1 alone.

When the user downloads the app from App Store, is there a way to disable the download or launch of the app only for the first generation of iPad.

If not, can I add it in "What's new" option during the release of the app to App Store. Since it is a next version of release.

Please help.

Thanks in advance.

You could try to find a restriction with the UIRequiredDeviceCapabilities key in the info.plist. But this key only allows restrictions like armv7, magnetometer, etc. (full list available here ). So you can't filter only iPads of the first generation.

Anyway, what you could do is checking at runtime whether it's an iPad 1 or not. With this Library it's quite simple:

if([[UIDevice currentDevice] platformType] == UIDevice1GiPad){
   //it's an iPad 1!
}

I don't believe you can restrict your software to a certain class of devices, but you can impose limits based on iOS version. The newest version of iOS supported by the original iPad is 5.1.1, which is quite dated now, so you might consider requiring iOS6+ on the App Store.

Also, you could require the device to have a camera, which the iPad 1 does not. But beware that Apple could reject your app if it does not actually use the camera.

最好的方法是提供对iOS 6+的支持,该支持将不包括第一代ipad。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM