How can I change the permission request alert?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 136
- Joined: Fri Oct 14, 2011 6:53 am
How can I change the permission request alert?
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
"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
/*Whats all the fuss with c# ?*/
-
- Livecode Staff Member
- Posts: 818
- Joined: Fri Feb 06, 2015 4:03 pm
Re: How can I change the permission request alert?
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
--
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
--
-
- Posts: 136
- Joined: Fri Oct 14, 2011 6:53 am
Re: How can I change the permission request alert?
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
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
/*Whats all the fuss with c# ?*/
-
- Livecode Staff Member
- Posts: 818
- Joined: Fri Feb 06, 2015 4:03 pm
Re: How can I change the permission request alert?
Hello Peter,
Are you using mergAV? If yes, you can disable the microphone like this:
Note this will work in LC 8.1.10 / LC 9.0.0 / LC 9.0.1 RC-1
Best,
Panos
--
Are you using mergAV? If yes, you can disable the microphone like this:
Code: Select all
...
mergAVCamSet "microphone", empty
mergAVCamCreate
...
...
Best,
Panos
--
-
- Posts: 136
- Joined: Fri Oct 14, 2011 6:53 am
Re: How can I change the permission request alert?
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
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
/*Whats all the fuss with c# ?*/
-
- Posts: 136
- Joined: Fri Oct 14, 2011 6:53 am
Re: How can I change the permission request alert?
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
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
/*Whats all the fuss with c# ?*/
-
- Livecode Staff Member
- Posts: 818
- Joined: Fri Feb 06, 2015 4:03 pm
Re: How can I change the permission request alert?
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
--
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
--
-
- Posts: 136
- Joined: Fri Oct 14, 2011 6:53 am
Re: How can I change the permission request alert?
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
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
/*Whats all the fuss with c# ?*/
-
- Livecode Staff Member
- Posts: 818
- Joined: Fri Feb 06, 2015 4:03 pm
Re: How can I change the permission request alert?
Hello Peter,
What happens if you remove this line:
?
However, note that you do have to specify a *videoDevice* if you want to use the
command.
You can get a list of the available videoDevices using:
Best,
Panos
--
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"
You can get a list of the available videoDevices using:
Code: Select all
cameraControlGet "Cam" "videodevices"
Panos
--
-
- Posts: 136
- Joined: Fri Oct 14, 2011 6:53 am
Re: How can I change the permission request alert?
Panos,
Nothing happens when I remove:
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
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
/*Whats all the fuss with c# ?*/
-
- Livecode Staff Member
- Posts: 818
- Joined: Fri Feb 06, 2015 4:03 pm
Re: How can I change the permission request alert?
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
--
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
--
-
- Posts: 136
- Joined: Fri Oct 14, 2011 6:53 am
Re: How can I change the permission request alert?
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.
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.
/*Whats all the fuss with c# ?*/
-
- Livecode Staff Member
- Posts: 818
- Joined: Fri Feb 06, 2015 4:03 pm
Re: How can I change the permission request alert?
Hello Peter,
Unfortunately there is no workaround to this problem.
The fix requires changes in the engine.
Kind regards,
Panos
--
Unfortunately there is no workaround to this problem.
The fix requires changes in the engine.
Kind regards,
Panos
--