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

Adding config entries in plugin.xml results in duplicate .plist entries

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: cordova-plugman
    • Labels:
      None
    • Environment:

      macosx

      Description

      I have the following in the plugin.xml file for a custom plugin:

      <platform name="ios">
          <config-file target="*-Info.plist" parent="UIBackgroundModes">
              <array>
                 <string>location</string>
                 <string>voip</string>
              </array>
          </config-file>        
      </platform>
      

      However, this does not generate the expected entries in the .plist file. I get:

      <key>UIBackgroundModes</key>
      <array>
          <string>location</string>
          <string>voip</string>
          <string>location</string>
          <string>voip</string>
      </array>
      

      i.e. elements are repeated. I have tried with a single element in the source plugin.xml and get the same result.

      I am using the cordova CLI to manage my plugins, platforms and build.

      (p.s. I'm new to Cordova so apologies if this is filed under the incorrect component)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gercan Gorkem ERCAN
                Reporter:
                timcroydon Tim Croydon
              • Votes:
                5 Vote for this issue
                Watchers:
                18 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: