Skip to main content
Known Participant
April 24, 2015
Question

AIR iOS: Check permissions?

  • April 24, 2015
  • 1 reply
  • 902 views

Hi,

Is it possible to check if a user allowed access to the "camera roll" in an iOS 8 AIR app?

(the app needs the permission to let users load an image from the devices camera roll)

Thanks

This topic has been closed for replies.

1 reply

itlancer
Inspiring
April 24, 2015
blogtomAuthor
Known Participant
April 25, 2015

Is there any workaround available at the moment? Maybe something like a timer or error message that gets triggered if nothing happens because of the missing permission?

Lars Laborious
Legend
April 27, 2015

You can listen for an error event:

myCameraRoll.addEventListener(ErrorEvent.ERROR, saveToCamRollErr);

function saveToCamRollErr(e:ErrorEvent):void{

     // Show a message like"If you want to save pictures from this app to the camera roll you need to enable it in the Settings > Privacy > Photos > NameOfApp"

}