[
https://issues.apache.org/jira/browse/CB-9076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14647287#comment-14647287
]
ASF GitHub Bot commented on CB-9076:
------------------------------------
Github user miscer commented on the pull request:
https://github.com/apache/cordova-plugin-statusbar/pull/30#issuecomment-126207327
Yes, it does ignore the first preference, but sometimes the default value
from plugin.xml is not first, but second in the code. In my case it happened
when adding the iOS platform after installing the plugin:
(in config.xml)
```xml
<preference name="StatusBarOverlaysWebView" value="false" />
```
(in CLI)
```
cordova plugin add cordova-plugin-statusbar
cordova platform add ios
```
(resulting config.xml in platforms/ios)
```xml
<preference name="StatusBarOverlaysWebView" value="false" />
...
<preference name="StatusBarStyle" value="lightcontent" />
<preference name="StatusBarOverlaysWebView" value="true" />
```
> Invalid platform specific config.xml when using statusbar plugin
> ----------------------------------------------------------------
>
> Key: CB-9076
> URL: https://issues.apache.org/jira/browse/CB-9076
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI, Plugin Statusbar
> Affects Versions: 5.0.0
> Environment: iOS
> Reporter: Michal Miskernik
>
> I have this config.xml in the root directory of the cordova project:
> http://pastebin.com/jhFr7a5X
> After I run {{cordova build ios}} this is the config.xml that is in the
> platforms/ios/Teamweek directory: http://pastebin.com/scamymmM
> The problem is that there are these two lines in the second config.xml file:
> {code:xml}
> <preference name="StatusBarOverlaysWebView" value="true" />
> <preference name="StatusBarOverlaysWebView" value="false" />
> {code}
> That causes the statusbar to be hidden, ie. the "true" value from the config
> file is used instead of the "false" value that I want and that is in the
> original config.xml file.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]