Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12041

cordova-plugin-media-capture does not set or restore entries such as CAMERA_USAGE_DESCRIPTION

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • Master
    • None
    • None
    • iOS

    Description

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            minduch Christopher Mindus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: