How can I change the permission request alert?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Peter@multidesk.se
Posts: 136
Joined: Fri Oct 14, 2011 6:53 am

How can I change the permission request alert?

Post by Peter@multidesk.se » Fri Jul 20, 2018 9:16 am

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
/*Whats all the fuss with c# ?*/

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: How can I change the permission request alert?

Post by LiveCode_Panos » Fri Jul 20, 2018 10:33 am

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
--

Peter@multidesk.se
Posts: 136
Joined: Fri Oct 14, 2011 6:53 am

Re: How can I change the permission request alert?

Post by Peter@multidesk.se » Sat Jul 21, 2018 10:10 am

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
/*Whats all the fuss with c# ?*/

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: How can I change the permission request alert?

Post by LiveCode_Panos » Sat Jul 21, 2018 12:46 pm

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
--

Peter@multidesk.se
Posts: 136
Joined: Fri Oct 14, 2011 6:53 am

Re: How can I change the permission request alert?

Post by Peter@multidesk.se » Sat Jul 21, 2018 12:57 pm

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
/*Whats all the fuss with c# ?*/

Peter@multidesk.se
Posts: 136
Joined: Fri Oct 14, 2011 6:53 am

Re: How can I change the permission request alert?

Post by Peter@multidesk.se » Mon Jul 23, 2018 11:40 am

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
/*Whats all the fuss with c# ?*/

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: How can I change the permission request alert?

Post by LiveCode_Panos » Mon Jul 23, 2018 12:05 pm

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
--

Peter@multidesk.se
Posts: 136
Joined: Fri Oct 14, 2011 6:53 am

Re: How can I change the permission request alert?

Post by Peter@multidesk.se » Mon Jul 23, 2018 12:36 pm

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
/*Whats all the fuss with c# ?*/

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: How can I change the permission request alert?

Post by LiveCode_Panos » Mon Jul 23, 2018 1:29 pm

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
--

Peter@multidesk.se
Posts: 136
Joined: Fri Oct 14, 2011 6:53 am

Re: How can I change the permission request alert?

Post by Peter@multidesk.se » Mon Jul 23, 2018 2:26 pm

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
/*Whats all the fuss with c# ?*/

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: How can I change the permission request alert?

Post by LiveCode_Panos » Mon Jul 23, 2018 3:54 pm

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
--

Peter@multidesk.se
Posts: 136
Joined: Fri Oct 14, 2011 6:53 am

Re: How can I change the permission request alert?

Post by Peter@multidesk.se » Sun Sep 02, 2018 11:59 am

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. :?
/*Whats all the fuss with c# ?*/

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: How can I change the permission request alert?

Post by LiveCode_Panos » Thu Sep 06, 2018 8:59 am

Hello Peter,

Unfortunately there is no workaround to this problem.

The fix requires changes in the engine.

Kind regards,
Panos
--

Post Reply

Return to “iOS Deployment”