[ 
https://issues.apache.org/jira/browse/CB-13679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

jcesarmobile closed CB-13679.
-----------------------------
    Resolution: Not A Problem

This is intended, variables were causing conflicts when two or more plugins 
where trying to set the same entry.
Latest versions of all the core plugins removed the variables, you have to use 
edit-config tag (it has been documented as quirk on the plugin README.md files)

> Plugins' privacy usage variables are not being transferred to plist
> -------------------------------------------------------------------
>
>                 Key: CB-13679
>                 URL: https://issues.apache.org/jira/browse/CB-13679
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-cli
>    Affects Versions: cordova-ios 4.5.0
>         Environment: Mac OS X 10.13.1, XCode 9.2, corodva-ios 4.5.4 Ionic 
> 3.19.0
>            Reporter: Josh Kapp
>              Labels: plugin-camera, plugin-media-capture
>
> When building an ionic project with {{ionic cordova build ios --device  
> --release}} the usage description values for the following plugins are not 
> generated in the resulting plist. This was verified to work correctly in the 
> same environment in previous versions of cordova (6.x).
>  {{<plugin name="cordova-plugin-camera" spec="^2.4.1">
>         <variable name="CAMERA_USAGE_DESCRIPTION" value="Rallyest would like 
> to access your camera to capture photos and videos" />
>         <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="Rallyest would 
> like to access photos and videos in your photo library" />
>     </plugin>
> ...
> <plugin name="cordova-plugin-media-capture" spec="^2.0.0">
>         <variable name="CAMERA_USAGE_DESCRIPTION" value="Rallyest would like 
> to access your camera to capture photos and videos" />
>         <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="Rallyest would 
> like to access photos and videos in your photo library" />
>         <variable name="MICROPHONE_USAGE_DESCRIPTION" value="Rallyest would 
> like to access your microphone to capture movie audio" />
>     </plugin>}}
> As a workaround, these can be set explicitly via: 
> {{<edit-config file="*-Info.plist" mode="merge" 
> target="NSCameraUsageDescription">
>         <string>Rallyest would like to access your camera to capture photos 
> and videos</string>
>     </edit-config>
>     <edit-config file="*-Info.plist" mode="merge" 
> target="NSPhotoLibraryUsageDescription">
>         <string>Rallyest would like to access photos and videos in your photo 
> library</string>
>     </edit-config>}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to