Git Product home page Git Product logo

Comments (15)

bau720123 avatar bau720123 commented on June 15, 2024

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.

boozedog avatar boozedog commented on June 15, 2024

That's sad. I used to be able to do it in PhoneGap 2.9.0 !

from statusbarplugin.

bau720123 avatar bau720123 commented on June 15, 2024

Asked the author or just wait...ㄚ_ㄚ

from statusbarplugin.

bau720123 avatar bau720123 commented on June 15, 2024

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.

boozedog avatar boozedog commented on June 15, 2024

Already got that in there. Works fine with 2.9.0 but seems to be ignored in 3.1.0 ...

from statusbarplugin.

boozedog avatar boozedog commented on June 15, 2024

Hey there Bob any ideas?

from statusbarplugin.

boozedog avatar boozedog commented on June 15, 2024

Or is there maybe another project I should enter this issue under!

from statusbarplugin.

bobeast avatar bobeast commented on June 15, 2024

@bau720123 has it right. Have you tried setting the bg color with the plugin?

from statusbarplugin.

boozedog avatar boozedog commented on June 15, 2024

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.

bobeast avatar bobeast commented on June 15, 2024

@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.

boozedog avatar boozedog commented on June 15, 2024

Don't suppose the plugin can be changed to allow use of existing config.xml values?

from statusbarplugin.

bobeast avatar bobeast commented on June 15, 2024

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.

boozedog avatar boozedog commented on June 15, 2024

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.

bobeast avatar bobeast commented on June 15, 2024

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.

boozedog avatar boozedog commented on June 15, 2024

Ah of course. That makes sense. Thanks for the help Bob.

from statusbarplugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.