Josh Kapp created CB-13679:
------------------------------

             Summary: 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


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