5
Views
1
Comments
[CameraPreview Plugin] Changing the default camera permission message on iOS
Forge component by Daniel Martins
3
Published on 14 Aug 2019
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.

Rank: #5731

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.