AIR for iOS CameraRoll.requestPermission() Crash
Adobe Animate CC Build 16.1.0.86
AIR 27.0.0.128 for iOS
iPad Pro, iOS 11.0.3
When I use the following code, my app will present the dialog box asking for permission. If I choose OK, the app immediately crashes.
camRoll = new CameraRoll();
camRoll.requestPermission();
I have added an event listener for the PermissionEvent.PERMISSION_STATUS event. The handler includes a trace() that should log a message. This message never shows up, so I believe it is crashing before this event.
Using Xcode to view device logs, I find that the following reason:
Exception Type: EXC_BAD_ACCESS
I have defined the following InfoAdditions:
<key>UIDeviceFamily</key>
<array><string>1</string><string>2</string></array>
<key>UIPrerenderedIcon</key><true/>
<key>FacebookAppID</key>
<string>674465169231742</string>
<key>CFBundleURLTypes</key>
<array><dict><key>CFBundleURLSchemes</key><array><string>fb140320192822178</string></array></dict></array>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict><key>NSAllowsArbitraryLoads</key><true/></dict>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Used for saving coloring pages.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Used for saving coloring pages.</string>
After the crash, if I go through this again, the permission HAS been granted successfully. So, it does work, it just crashes in the process.
How can I resolve this?
