• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

AIR for iOS CameraRoll.requestPermission() Crash

Community Beginner ,
Dec 08, 2017 Dec 08, 2017

Copy link to clipboard

Copied

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?

TOPICS
Development

Views

445

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 14, 2017 Dec 14, 2017

Copy link to clipboard

Copied

Hi

I have tried with the sample app, requesting the camera permission and adding the event listener for Permission Status. I have defined the InfoAdditions as mentioned. It is working fine on our device(iPhone 7, iPhone 8 on iOS 11.2).

Could you share the sample project where this issue is observed. You can email me directly on prakaskuATadobeDOTcom.

Thanks

Prakash Kumar | Adobe AIR Engineering

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 14, 2017 Dec 14, 2017

Copy link to clipboard

Copied

LATEST

I was able to determine that this was caused by another class in my project. However, I have not had the time to determine exactly which part part of that code is the cause.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines