PowPi PowPi - 9 days ago 9
iOS Question

cordova cordova-plugin-statusbar StatusBarOverlaysWebView not working

I added the https://github.com/apache/cordova-plugin-statusbar plugin. Now setting the

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


still does not work (false and true) and it is always overlaping in IOS 7. But setting

<preference name="StatusBarStyle" value="lightcontent" />


works normal and I am able to use different status bar colors. So for me it looks like the plugin is basically working.
Has someone a idear what I do wrong?

Thx!
cheers

Answer

Try to add following lines in config.xml:

<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="StatusBarBackgroundColor" value="#165769" /> <!--Your color value will go here-->
<preference name="StatusBarStyle" value="lightcontent" />
Comments