You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Craig Payne (JIRA)" <ji...@apache.org> on 2014/06/02 07:35:01 UTC

[jira] [Closed] (CB-6845) Prepare step adds duplicate preferences to iOS Platform's config.xml file for some plugins

     [ https://issues.apache.org/jira/browse/CB-6845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Craig Payne closed CB-6845.
---------------------------

    Resolution: Cannot Reproduce

After removing the references to the Plugins from the top-level config.xml file (I had initially been using just the one platform, and the Plugin/Feature lines were near the bottom of the file) - and re-running, NOW it's putting the Plugin/Feature definitions and Preferences at the TOP of the file, instead of the bottom (where the Plugin info had been).  So, now my settings ARE effective.

Confusing, and may still be a bug of some kind, but probably not worth fixing...


> Prepare step adds duplicate preferences to iOS Platform's config.xml file for some plugins
> ------------------------------------------------------------------------------------------
>
>                 Key: CB-6845
>                 URL: https://issues.apache.org/jira/browse/CB-6845
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, iOS
>    Affects Versions: 3.4.0
>         Environment: MacOS Mavericks.  Project supports both iOS and Android.
>            Reporter: Craig Payne
>            Priority: Minor
>
> NOTE - I'm actually using version 3.4.1-0.1.0, but it won't let me input that as a version number)
> I'm using the "Cross-Platform Workflow" and I ran into a problem where some of the preferences for the SplashScreen were not working as I expected.  It turned out that the Prepare step was adding the same Preferences I already had defined in the top level config.xml - but with Different values to the Platform specific version of the config.xml file.  Adding to the confusion, the prepare step modifies the:
>      platform/ios/APPNAME/config.xml
> but NOT the:
>      platform/ios/build/emulator/APPNAME.app/config.xml
> But during the Build step, they become identical again - to each other, but not to the top-level config.xml, of course.
> -----
>  I already have in the top-level config.xml before I run 'prepare':
>     <preference name="AutoHideSplashScreen" value="false" />
>     <preference name="FadeSplashScreen" value="true" />
>     <preference name="FadeSplashScreenDuration" value=".25" />
>     <preference name="ShowSplashScreenSpinner" value="false" />
>     <preference name="StatusBarOverlaysWebView" value="false" />
> On iOS the prepare step ADDS:
>      <preference name="AutoHideSplashScreen" value="true" />
>      <preference name="ShowSplashScreenSpinner" value="true" />
>      <preference name="StatusBarOverlaysWebView" value="true" />
>     +
>    Also adds Features for each Plugin declared
> I believe that this effectively overwrites several settings (as it puts the added preferences later in the file).
> On Android I haven't yet seen it overwrite any of the Preferences, so this might be limited to iOS.
> ---
> I'm going to try to workaround this using a Hook, but I'd prefer to see the config.xml parsed and Preferences not reset - certainly, not without some kind of warning.



--
This message was sent by Atlassian JIRA
(v6.2#6252)