Skip to main content
ambitious_wanderer1549
Participant
October 27, 2017
Answered

Is AIR for iOS 26 no longer saving images to device?

  • October 27, 2017
  • 1 reply
  • 559 views

I developed an app packaged using AIR 23.x that saves images to iOS Photo/camera roll. Worked as designed. This past week, after updating to Animate CC 2018 and packaging the app with AIR 26 it won't save images to the device. Doesn't even request access to my "Photos." I haven't changed anything in my project files, only re-packaged for iOS using AIR 26 in Animate 2018.

I searched for AIR release notes related to this topic and haven't found anything yet.

Can someone please point me in the right direction for getting AIR 26 on Animate 2018 to package for iOS so that my apps can save images to the device?

This topic has been closed for replies.
Correct answer ambitious_wanderer1549

I did some more googling and discovered the Adobe Flash 24 and AIR 24 beta release notes contain permission information for Android and iOS, including a code example.

I haven't update my project yet, but what I want to do looks straightforward based on what I'm seeing in the AIR 24 release notes and the ActionScript documentation.

Here's a link to the release notes that discuss permissions: http://fpdownload.macromedia.com/pub/labs/flashruntimes/shared/air24_flashplayer24_releasenotes.pdf

And here's some links to ActionScript reference documentation for anyone else searching this topic:

PermissionError - Adobe ActionScript® 3 (AS3 ) API Reference

PermissionEvent - Adobe ActionScript® 3 (AS3 ) API Reference

PermissionStatus - Adobe ActionScript® 3 (AS3 ) API Reference

1 reply

kglad
Community Expert
Community Expert
October 28, 2017

there are new security restrictions that require you to query the user before using the camera, mic etc.  google for info.

if you don't find the answers post again and i'll check my files.

ambitious_wanderer1549
Participant
October 31, 2017

Thanks for the reply.

I'm missing something despite searching Google.

I discovered how to include the reason the app wants Photos write-only access using a Cocoa key in the XML (and included that in my latest build), yet I haven't discovered how to trigger the Photos access request when packaging the app via Animate CC 2018 with AIR for iOS 26.

Both in the past, and now, exporting the app using Adobe Animate CC 2017 with "AIR 23.0 for iOS" results in the app automatically requesting Photos access the first time an save-image request was generated.

Can you provide me with guidance on how to request Photos access? Or provide me with some documentation to read?

Thanks again!

kglad
Community Expert
Community Expert
November 1, 2017

you're welcome.