[CameraPreview Plugin] Changing the default camera permission message on iOS
camerapreview-plugin
Mobile icon
Forge component by Daniel Martins
Application Type
Mobile

Hi there

I'm trying to put a mobile app on the AppStore, but the store is complaining about the permission message when using the camera. The application needs the camera to work, so we urgently need to fix this problem.

I'm using the CameraPreviewPlugin instead of CameraPlugin, because the application needed the camera to appear in full screen.

Looking here on the forum, I thought I could change some parameters in Extensibility Configurations, but it didn't work. Here is the code that is in Extensibility:

{

    "plugin": 

    {

        "url": "https://github.com/martinsda/cordova-plugin-camera-preview.git#v0.10.4",

        "variables":[{

            "name":"CAMERA_USAGE_DESCRIPTION",

            "values":"Utilizaremos a camera para tirar fotografias para realizar o registro de ponto"

        },

        {

            "name":"PHOTOLIBRARY_USAGE_DESCRIPTION",

            "values":"Utilizaremos a biblioteca para resgatar fotografias para realizar o registro de ponto"

        }]

    }

}


My doubts are:

1 - Where do I change the default camera permission message on the iPhone?

2 - If it is for Extensibility, what are the variables that I should put?

3 - And in which project should I edit the Extensibility, in my mobile project or in the CameraPreviewPlugin module?


Thanks in advance.

Hi Henrique.

Change extensibility of CameraPreviewPlugin module to add following variables:

CAMERA_USAGE_DESCRIPTION

PHOTOLIBRARY_USAGE_DESCRIPTION


Change variables values to your custom messages. 


I already use this in mobile apps, with CameraPlugin module.


I hope helps.


Did you manage to fix this? I have the same issue, I changed the extensiblity configuration but it's not working.  I keep seeing the default message.

Hello,

I was able to set a custom message when using the camera with a clone of this plugin. I also cloned the original .git to include this:

And in the extensibilities of the Plugin:

{

    "plugin":

    {

        "url": "https://github.com/YOUR_USER/cordova-plugin-camera-preview.git",

        "variables":

        [

            {

            "name":"CAMERA_USAGE_DESCRIPTION",

            "value":"This aplication bla bla bla bla bla bla"

            }

        ]

    }

}


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.