Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to properly set UIRequiredDeviceCapabilities?

I have had an app rejected by Apple stating that I need to implement UIRequiredDeviceCapabilities in my info.plist due to my app requiring a camera flash. I understand the issue but I am not sure how to properly set this key. Do I create UIRequiredDeviceCapabilities as a dictionary or array? and camera-flash as a bool or string? Any help is appreciated! Thanks!

like image 840
Jake Sankey Avatar asked Sep 22 '10 02:09

Jake Sankey


1 Answers

Add this text to your app's Info.plist file:

<key>UIRequiredDeviceCapabilities</key>
<array>
    <string>camera-flash</string>
</array>

You only need a dictionary if some of the capability requirements need to be false.

Important note from docs:

For app updates, you can only maintain or relax capability requirements. Submitting an update with added requirements would prevent some customers who previously downloaded your app from running the update.

like image 179
hotpaw2 Avatar answered Nov 15 '22 22:11

hotpaw2