Skip to content
This repository was archived by the owner on Oct 29, 2022. It is now read-only.
This repository was archived by the owner on Oct 29, 2022. It is now read-only.

Order of preference tags in generated config.xml is wrong #465

@matthewgertner

Description

@matthewgertner

I am using cordova-plugin-statusbar to customize the appearance of my app's statusbar on iOS. Specifically, I want to change the value of StatusBarOverlaysWebView to false, so I include the following line in my config.xml:

<preference name="StatusBarOverlaysWebView" value="false" />

This works great when I test using a local XCode build. When I build on PhoneGap Build, however, the default setting for this value (which is true) is not overridden.

After considerable head-scratching, I noticed that the order of the preferences in config.xml is different in the one generated by PhoneGap. In my local build, the following lines from the plugin's plugin.xml are included before the line overriding the setting:

    <feature name="StatusBar">
        <param name="ios-package" value="CDVStatusBar" />
        <param name="onload" value="true" />
    </feature>
    <preference name="StatusBarOverlaysWebView" value="true" />

In the config.xml generated by PhoneGap, however, these lines appear at the very end of the file. I am guessing that "last write wins" and thus the default value is overwriting my custom preference.

Is there some way for me to influence this or is it just a PhoneGap Build bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions