简体   繁体   中英

How to restrict installing ios app from appstore for some of the devices which doesn't support NFC?

I have been working on NFC based passes iOS App where some some of the devices doesn't support NFC. How to restrict that devices from installing the apps from appstore?

Where the OS is supported but the hardware doesn't support for NFC enabled passes(Apple VAS Protocol not CoreNFC).

Is there any settings needs to be done in Xcode for NFC pass enabled device only to support?

If you want to run your app only for NFC supported models then you need to add UIRequiredDeviceCapabilities key in Info.plist:

key>UIRequiredDeviceCapabilities</key>
<array>
    // ... your restrictions
    <string>nfc</string>
</array>

With this requirement only the devices with NFC will be able to download our app from App Store.

Sources:

  1. Device Compatibility
  2. UIRequiredDeviceCapabilities

You can't restrict device models to install app. You can only use deployment target, to restrict by iOS version. That's only way to make some restrictions.

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