Skip to main content
SangHee
Known Participant
June 27, 2019
Question

ios permission - NSPhotoLibraryUsageDescription, NSCameraUsageDescription, NSLocationAlwaysUsageDescription, NSLocationWhenInUseUsageDescription

  • June 27, 2019
  • 1 reply
  • 1337 views

Hi~

I have some question about permission of AIR SDK for iOS.

When I made an sample project with ActionScript Mobile Project and exported a realease build (.ipa),

the following keys was added automatically to info.plist.

<key>NSPhotoLibraryUsageDescription</key>

<string>Required by Apple</string>

<key>NSCameraUsageDescription</key>

<string>Required by Apple</string>

<key>NSLocationAlwaysUsageDescription</key>

<string>Required by Apple</string>

<key>NSLocationWhenInUseUsageDescription</key>

<string>Required by Apple</string>

An sample project was empty and I did not add anything to it.

My development environment is Flash Builder 4.7 and AIR SDK 32 beta ( 32.0.0.109 ) - MacBook Pro (Retina, 13-inch, Late 2013), macOS High Sierra 10.13.6.

Is the above keys is required to use AIR SDK 32?

If anyone knows about this, please let me know.

Please, plese help me.

This topic has been closed for replies.

1 reply

Flipline
Inspiring
June 27, 2019

Apple does require those keys if you're using the camera and location, and it seems like Adobe decided to just always add those keys to all apps, since some users were getting rejections because they didn't realize it was a new requirement from Apple.  I haven't seen any way to disable the SDK doing that, but if your app is actually using camera/photos or location you can define the keys with better description strings in your xml file and it will use your strings instead of the generic "Required by Apple".

SangHee
SangHeeAuthor
Known Participant
June 28, 2019

My app does not use the functions of camera, location, photo.

Is there any way that keys is not added to info.plist automatically when it export release build?

Or Is there any way that it remove the keys from info.plist automatically?