Page 1 of 1
How can I change the permission request alert?
Posted: Fri Jul 20, 2018 9:16 am
by Peter@multidesk.se
This is the message I received from Apple
"We noticed that your app requests the user’s consent to access their camera and microphone but does not clarify the use of this feature in the permission modal alert.
To resolve this issue, please revise the permission modal alert to specify why the app is requesting access to the user's camera and microphone.
The permission request alert should specify how your app will use this feature to help users understand why your app is requesting access to their personal data."
This is, as far as I know, an iOS modal.
What can I do to fix this?
///Peter
Re: How can I change the permission request alert?
Posted: Fri Jul 20, 2018 10:33 am
by LiveCode_Panos
Hello Peter,
The strings that describe the use of these permissions are in the plist template. Currently they are too generic, for example "This app requires access to your microphone", and after the stricter rules Apple has imposed, it causes the app to be rejected.
You can modify the description string in the plist template, or include a customized plist in the Copy Files section (this will override the plist generated by the standalone builder).
See this report for more details:
https://quality.livecode.com/show_bug.cgi?id=19780
Best,
Panos
--
Re: How can I change the permission request alert?
Posted: Sat Jul 21, 2018 10:10 am
by Peter@multidesk.se
Ok, Thx Panos,
Additionally, a second issue with this, my app only need the camera permission and has no use for the microphone.
I thought that the microphone access permission had to do with the video settings and not the camera but it does not matter whether I choose, the result is the same.
It seems wrong to set the microphone setting to "prohibited" but maybe this is the way to do it.
Or is it another way to set permissions for the camera without accessing the microphone?
///Peter
Re: How can I change the permission request alert?
Posted: Sat Jul 21, 2018 12:46 pm
by LiveCode_Panos
Hello Peter,
Are you using mergAV? If yes, you can disable the microphone like this:
Code: Select all
...
mergAVCamSet "microphone", empty
mergAVCamCreate
...
...
Note this will work in LC 8.1.10 / LC 9.0.0 / LC 9.0.1 RC-1
Best,
Panos
--
Re: How can I change the permission request alert?
Posted: Sat Jul 21, 2018 12:57 pm
by Peter@multidesk.se
No I'm not, I have no need for video, just the still camera.
This is why I'm confused when the app ask for permission for the microphone. Normally you don't have any use for audio when taking pictures.
///Peter
Re: How can I change the permission request alert?
Posted: Mon Jul 23, 2018 11:40 am
by Peter@multidesk.se
Panos,
Setting the microphone to "prohibited" doesn't stop the modal allert...
It's seems a little bit silly, and certainly very strange, to change the description string for the microphone to something like "This app does not require microphone" rather than not showing the message at all. (and does the app review team approve to that?)
What can I do?
///Peter
Re: How can I change the permission request alert?
Posted: Mon Jul 23, 2018 12:05 pm
by LiveCode_Panos
Hello Peter,
No, I done think you must change the description string for the microphone at this point.
Which command do you use to show the camera? Maybe it is the same bug we fixed for mergAV.
Best,
Panos
--
Re: How can I change the permission request alert?
Posted: Mon Jul 23, 2018 12:36 pm
by Peter@multidesk.se
Panos,
I use:
cameraControlCreate "Cam"
cameraControlSet "Cam", "visible", true
cameraControlSet "Cam", "rect", tCamTemplate
cameraControlSet "Cam", "device", "back"
cameraControlSet "Cam", "audioDevice", ""
I have tried to set the "audioDevice" to different values but nothing happens.
///Peter
Re: How can I change the permission request alert?
Posted: Mon Jul 23, 2018 1:29 pm
by LiveCode_Panos
Hello Peter,
What happens if you remove this line:
Code: Select all
cameraControlSet "Cam", "audioDevice", ""
?
However, note that you do have to specify a *videoDevice* if you want to use the
Code: Select all
cameraControlDo "Cam", "takePicture"
command.
You can get a list of the available videoDevices using:
Code: Select all
cameraControlGet "Cam" "videodevices"
Best,
Panos
--
Re: How can I change the permission request alert?
Posted: Mon Jul 23, 2018 2:26 pm
by Peter@multidesk.se
Panos,
Nothing happens when I remove:
Code: Select all
cameraControlSet "Cam", "audioDevice", ""
If I get this right, "CameraControlCreate" is just good for capturing video and that's why audio is mandatory?
I don't specify a "videoDevice" but the function is flawless, (when take pictures) except for the audio issue.
///Peter
Re: How can I change the permission request alert?
Posted: Mon Jul 23, 2018 3:54 pm
by LiveCode_Panos
Hello Peter,
Thanks for the update.
Ok then, so this looks like a bug to me. I suggest filing a bug report at quality.livecode.com
Using the camera control should not ask for microphone permission if the audio device is set to empty.
Best,
Panos
--
Re: How can I change the permission request alert?
Posted: Sun Sep 02, 2018 11:59 am
by Peter@multidesk.se
Panos,
This bug is reported:
https://quality.livecode.com/show_bug.cgi?id=21438
Now, to my problem.....
During the time this bug is getting fixed.
Is there any way to manually change the microphone permission settings in the pList? (or where these settings end up in the build)
For example, by editing the stack script of revSaveAsIosStandalone, or something similar...
As it is now, the App Store refuses to approve my app as long as it asks for the microphone permission and I need this app to go to the market very soon.
///Peter
PS. It took Apple five weeks in review to figure out that they would require this change to approve the app.

Re: How can I change the permission request alert?
Posted: Thu Sep 06, 2018 8:59 am
by LiveCode_Panos
Hello Peter,
Unfortunately there is no workaround to this problem.
The fix requires changes in the engine.
Kind regards,
Panos
--