You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Christopher Mindus (JIRA)" <ji...@apache.org> on 2016/10/31 00:13:59 UTC

[jira] [Commented] (CB-12041) cordova-plugin-media-capture does not set or restore entries such as CAMERA_USAGE_DESCRIPTION

    [ https://issues.apache.org/jira/browse/CB-12041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15620826#comment-15620826 ] 

Christopher Mindus commented on CB-12041:
-----------------------------------------

Every time a new "cordova build ios" is performed, any changes in the XXX-Info.plist file for these entries are lost. If you don't notice this directly, you will when your app is rejected by the App Store due to the missing string entries.

> cordova-plugin-media-capture does not set or restore entries such as CAMERA_USAGE_DESCRIPTION
> ---------------------------------------------------------------------------------------------
>
>                 Key: CB-12041
>                 URL: https://issues.apache.org/jira/browse/CB-12041
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.4.0
>            Reporter: Christopher Mindus
>
> An entry in config.xml such as:
> <plugin name="cordova-plugin-media-capture"        spec="1.4.0" >
>     <variable name="CAMERA_USAGE_DESCRIPTION"        value="App would like to access the camera."        />
>     <variable name="MICROPHONE_USAGE_DESCRIPTION"    value="App would like to access the microphone."    />
>     <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION"  value="App would like to access the photo library." />  
>   </plugin>
> does not update the ios.json and *-Info.plist files with the corresponding entries NSCameraUsageDescription, NSMicrophoneUsageDescription and NSPhotoLibraryUsageDescription.
> This applies when performing "cordova platform add ios [--save]" as well as when changing the main config.xml file with new or updated text entries and/or variables.
> The main config.xml file should update the other files (ios.json and *.plist).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org