Skip to main content
Known Participant
Apr 24, 2015 12:59 PM UTC
Question

AIR iOS: Check permissions?

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

itlancer
Inspiring
Apr 24, 2015 3:05 PM UTC
blogtomAuthor
Known Participant
Apr 25, 2015 12:03 PM UTC

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?

Translate
Lars Laborious
Legend
Apr 27, 2015 7:25 AM UTC

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"

}

Translate