Software Archive
Read-only legacy content

Status Bar

mike_m_7
Beginner
577 Views

 

I have read the previous topics for the status bar for ios, but nothing is working.

I have created an empty project without adding anything new and when i run it on ios 9 on my iphone 5, the entire screen is white. The status bar is not showing. The config.xml files have  and i have also installed the statusbar plugin.:

<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="StatusBarBackgroundColor" value="#000000"/>

How can I just have the statusbar to be shown normally? If i change the background color of the main page to grey for example, the status bar remains white and the rest of the view is grey. Why is this happening? How can I fix it?

Thank you.

0 Kudos
2 Replies
Chris_P_Intel
Employee
577 Views

I am not an expert on the status bar plugin, but IIRC the status bar plugin is used to _hide_ the status bar, or to change its color.  If you want a normal status bar, don't use the plugin at all.

If you want to change the color of the status bar, and have the status bar to be visible, then I believe this is the XML you use:

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

 

I could be wrong. I've never used the plugin myself.

0 Kudos
PaulF_IntelCorp
Employee
577 Views

See the doc page for some methods you can use to manipulate the status bar > https://github.com/apache/cordova-plugin-statusbar

0 Kudos
Reply