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

Plugins' privacy usage variables are not being transferred to plist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • cordova-ios 4.5.0
    • None
    • cordova-cli
    • Mac OS X 10.13.1, XCode 9.2, corodva-ios 4.5.4 Ionic 3.19.0

    Description

      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>}}

      Attachments

        Activity

          People

            Unassigned Unassigned
            snort Josh Kapp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: