Highlighted

NSPhotoLibraryUsageDescription, NSCameraUsageDescription

Explorer ,
Nov 09, 2016

Copy link to clipboard

Copied

With the new intents in iOS10, will there be a ( simple ) way to configure these keys with Adobe Air, or will we have to unpack / edit info.plist / repack the .ipa ?

ADT should automate this process, in my opinion

Is there a plan to develop such features?

Thanks in advance

Hi Paul,

Please refer to our AIR 24 beta release notes and go through the section "Permissions on Android and iOS"

http://fpdownload.macromedia.com/pub/labs/flashruntimes/shared/air24_flashplayer24_releasenotes.pdf

You can use such keys directly under <infoAdditions> tag in app.xml file while packaging AIR application.

Kindly refer to below example for NSLocationAlwaysUsageDescription:

<InfoAdditions><![CDATA[

        <key>NSLocationAlwaysUsageDescription</key>

        <string>Sample description to allow geolocation always</string>

        <key>NSLocationWhenInUseUsageDescription</key>

        <string>Sample description to allow geolocation when application is in foreground</string>        

  <key>UIDeviceFamily</key>

  <array>

  <string>1</string>

  <string>2</string>

  </array>

  ]]></InfoAdditions>

Please let us know if it helps you.

Thanks,

Adobe AIR Team

TOPICS
Development

Views

1.3K

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

NSPhotoLibraryUsageDescription, NSCameraUsageDescription

Explorer ,
Nov 09, 2016

Copy link to clipboard

Copied

With the new intents in iOS10, will there be a ( simple ) way to configure these keys with Adobe Air, or will we have to unpack / edit info.plist / repack the .ipa ?

ADT should automate this process, in my opinion

Is there a plan to develop such features?

Thanks in advance

Hi Paul,

Please refer to our AIR 24 beta release notes and go through the section "Permissions on Android and iOS"

http://fpdownload.macromedia.com/pub/labs/flashruntimes/shared/air24_flashplayer24_releasenotes.pdf

You can use such keys directly under <infoAdditions> tag in app.xml file while packaging AIR application.

Kindly refer to below example for NSLocationAlwaysUsageDescription:

<InfoAdditions><![CDATA[

        <key>NSLocationAlwaysUsageDescription</key>

        <string>Sample description to allow geolocation always</string>

        <key>NSLocationWhenInUseUsageDescription</key>

        <string>Sample description to allow geolocation when application is in foreground</string>        

  <key>UIDeviceFamily</key>

  <array>

  <string>1</string>

  <string>2</string>

  </array>

  ]]></InfoAdditions>

Please let us know if it helps you.

Thanks,

Adobe AIR Team

TOPICS
Development

Views

1.3K

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
Nov 09, 2016 0
Adobe Employee ,
Nov 09, 2016

Copy link to clipboard

Copied

Hi Paul,

Please refer to our AIR 24 beta release notes and go through the section "Permissions on Android and iOS"

http://fpdownload.macromedia.com/pub/labs/flashruntimes/shared/air24_flashplayer24_releasenotes.pdf

You can use such keys directly under <infoAdditions> tag in app.xml file while packaging AIR application.

Kindly refer to below example for NSLocationAlwaysUsageDescription:

<InfoAdditions><![CDATA[

        <key>NSLocationAlwaysUsageDescription</key>

        <string>Sample description to allow geolocation always</string>

        <key>NSLocationWhenInUseUsageDescription</key>

        <string>Sample description to allow geolocation when application is in foreground</string>        

  <key>UIDeviceFamily</key>

  <array>

  <string>1</string>

  <string>2</string>

  </array>

  ]]></InfoAdditions>

Please let us know if it helps you.

Thanks,

Adobe AIR Team

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...
Nov 09, 2016 1
Explorer ,
Nov 09, 2016

Copy link to clipboard

Copied

Awesome, thanks!

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...
Nov 09, 2016 0
Explorer ,
May 02, 2017

Copy link to clipboard

Copied

I have another issue on iOS with _cameraRoll.requestPermission . If the user *doesn't* allow the permission, the iOS dialog can never show up again : subsequent calls to requestPermission() fail silently.

Am I missing something or is this the normal behavior?

Thanks in advance

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...
May 02, 2017 0
Adobe Employee ,
May 02, 2017

Copy link to clipboard

Copied

Hi,

On iOS, once a end user denies the requested permission, the dialog will never come up in the UI. Although developer (you) should receive the call back within the app. User can go to settings of the app on the device and set the requested permission.

Please let us know if this is not the case.

Thanks,

Ankit | Adobe AIR Engineering

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...
May 02, 2017 2
Explorer ,
May 03, 2017

Copy link to clipboard

Copied

I see, I suspected that could be a normal iOS behavior... damnit!

I indeed get the correct permissionStatus ( DENIED ), and am handling the case properly now, informing the user about the photo access settings,

Thanks for your reply!

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...
May 03, 2017 0