Comments (15)
it should be no way to set in config.xml
the only way is set to the javascript
StatusBar.backgroundColorByName("red")
OR
StatusBar.backgroundColorByHexString("#C0C0C0");
from statusbarplugin.
That's sad. I used to be able to do it in PhoneGap 2.9.0 !
from statusbarplugin.
Asked the author or just wait...ㄚ_ㄚ
from statusbarplugin.
try this in your config.xml
it is the only way similar you want it
https://build.phonegap.com/docs/config-xml
preference name="ios-statusbarstyle" value="black-opaque" /> //default is the grey color,or you can set black-opaque or black-translucent
from statusbarplugin.
Already got that in there. Works fine with 2.9.0 but seems to be ignored in 3.1.0 ...
from statusbarplugin.
Hey there Bob any ideas?
from statusbarplugin.
Or is there maybe another project I should enter this issue under!
from statusbarplugin.
@bau720123 has it right. Have you tried setting the bg color with the plugin?
from statusbarplugin.
Thanks! Here's what I have in my config.xml:
For some reason, it seems to get ignored when I use v3.1.0 . Works fine in v2.9.0 .
from statusbarplugin.
@boozedog - iOS 7 changes pretty much everything . Use the status bar plugin to set the bg color of the status bar, not config.xml.
from statusbarplugin.
Don't suppose the plugin can be changed to allow use of existing config.xml values?
from statusbarplugin.
Not in the short term. When we add support for Cordova 3.2 we'll probably revisit it. 3.2 defaults to iOS7 behavior (status bar overlaps webview). In that case, the status bar plugin will likely be required if you want iOS6 behavior. We'll evaluate how the status bar plugin interacts with config.xml at that time. No idea yet when 3.2 support will be added to Build.
from statusbarplugin.
OK understood. Just to be clear, though, iOS6 and iOS7 behavior is consistent as long as I use 2.9.0 . It's 3.1.0 that causes the app to look and feel different in iOS6 vs. 7 ...
from statusbarplugin.
2.9.0 builds against the iOS6 SDK, so I wouldn't expect any difference in behavior as you are still running an iOS6 app even if your device has been updated to iOS7.
3.1.0 builds against the iOS7 SDK which has substantial changes to UI behavior, not the least of which is how the status bar is managed.
from statusbarplugin.
Ah of course. That makes sense. Thanks for the help Bob.
from statusbarplugin.
Related Issues (20)
- Statusbar disappears after using inappbrowser HOT 5
- Unable to access StatusBar in JavaScript HOT 11
- Problems with PhoneGap build HOT 7
- PhonegapBuild Statusbar color by hex
- Doesn't work in portrait (top home button) orientation on iPad mini HOT 2
- Can't get styleLightContent to work HOT 2
- status bar plugin webview overlay & color properties not workin on in-app browser
- statusbar is not being applied in inappbrowser
- scrollable webview?
- Phonegap Build Hydration Issue. HOT 1
- gremlins with double status bar in IOS7 HOT 2
- On iOS 8 the the height and width are not correct HOT 3
- 有问题
- Staus bar re-appears upon using image ui picker in IOS 8.1.3
- How can i use this plugin for phonegap CLI HOT 1
- Black line under statusbar when sharing Internet connection HOT 1
- StatusBar is undefined HOT 7
- Add status-tap event HOT 1
- Cannot set statusbar background color a second time
- Error building with com.phonegap.plugin.statusbar for Android
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from statusbarplugin.