Skip to main content
Inspiring
Jul 18, 2018 8:38 AM UTC
Question

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

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

3 replies

Colin Holgate
Inspiring
Dec 4, 2018 7:14 PM UTC

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

Translate
Colin Holgate
Inspiring
Jul 18, 2018 2:20 PM UTC

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>

Translate
joeboy_ukAuthor
Inspiring
Jul 18, 2018 7:14 PM UTC

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

thanks for your help

Translate