Highlighted

AIR iOS: Check permissions?

Explorer ,
Apr 24, 2015

Copy link to clipboard

Copied

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

TOPICS
Development

Views

645

Likes

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

AIR iOS: Check permissions?

Explorer ,
Apr 24, 2015

Copy link to clipboard

Copied

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

TOPICS
Development

Views

646

Likes

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
Apr 24, 2015 0
Engaged ,
Apr 24, 2015

Copy link to clipboard

Copied

Likes

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
Reply
Loading...
Apr 24, 2015 0
Explorer ,
Apr 25, 2015

Copy link to clipboard

Copied

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?

Likes

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
Reply
Loading...
Apr 25, 2015 0
Enthusiast ,
Apr 27, 2015

Copy link to clipboard

Copied

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"

}

Likes

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
Reply
Loading...
Apr 27, 2015 1