• 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 iOS: Check permissions?

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

759

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

Copy link to clipboard

Copied

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
Explorer ,
Apr 25, 2015 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?

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
Enthusiast ,
Apr 27, 2015 Apr 27, 2015

Copy link to clipboard

Copied

LATEST

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"

}

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