cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Commented] (CB-10694) Platform-specific configuration preferences don't override global settings
Date Wed, 16 Mar 2016 05:39:33 GMT


Shazron Abdullah commented on CB-10694:

The problem here is in the config.xml munging, it adds duplicate entries.

For example, this in the root config.xml:
    <preference name="Orientation" value="default" />
    <platform name="ios">
        <preference name="Orientation" value="all" />

.. is translated to the platform config.xml:
    <preference name="Orientation" value="all" />
    <preference name="Orientation" value="default" />
... which is now a global preference in the platform config.xml, thus showing the result we
saw in the previous comment for case #3.

> Platform-specific configuration preferences don't override global settings
> --------------------------------------------------------------------------
>                 Key: CB-10694
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 6.0.0, 5.4.1
>            Reporter: Dan Polivy
>            Assignee: Shazron Abdullah
>            Priority: Minor
>              Labels: cordova-ios-4.1.1, triaged
> In the following scenario, the platform-specific orientation value is not taking preference
as I would expect:
> {{global: default, ios: all --> no plist entries}}
> In this scenario, both the global and the platform specific preference setting get copied
to the platform's config.xml, and the 'default' wins out. Is it a supported scenario to "override"
a global preference with a platform specific setting?
> I am testing with cordova@6.0.0.
> This is related to and

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message