Skip to main content
Inspiring
July 18, 2018
Question

Camera permission and 5. 1.1 Legal: Privacy - Data Collection and Storage

  • July 18, 2018
  • 2 replies
  • 1433 views

In the past whenever I've asked for camera permission or camera roll permission I've always put a modal alert before the request to access the camera that states why the app is requesting permission. Like the one screencapped below. My latest app is getting rejected for this. They want me to have the reason stated in the apple modal alert that actually asks for permission.

I don't have access to that modal alert as it's a system alert. Has anyone been able to change that system alert and if so how?

This topic has been closed for replies.

2 replies

Colin Holgate
Inspiring
December 4, 2018

AIR 28 introduced support for purposeStrings.xml. You can use that to define several permissions strings, and in alternate languages. This post talks about it:

11/23/2017 - Beta - AIR 28.0.0.120

Colin Holgate
Inspiring
July 18, 2018

They are just entries in the app descriptor XML. I just had to do that, and here are my entries for why I want the camera, and why I want access to camera roll. I think you will still be ok with doing your own dialog before the Apple one comes up. Here's how the XML looks:

<InfoAdditions><![CDATA[

<key>NSCameraUsageDescription</key>

<string>Take pictures of the people and places you would like to remember.</string>

<key>NSPhotoLibraryUsageDescription</key>

<string>Save this photo to your camera roll.</string>

joeboy_ukAuthor
Inspiring
July 18, 2018

AHhhh, I never knew that. That's great hopefully that will appease this reviewer.

thanks for your help