This works with PhoneGap / Cordova applications. It should happen automatically when you configure the application to run in fullscreen mode but it doesn’t for now.

Instead of this sufficing:

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

You have to include the following plugin in the config.xml file:

<gap:plugin name="org.apache.cordova.statusbar" />

And add this snippet to your index (or JavaScript) file:

document.addEventListener("deviceready", startEvents, false);
function startEvents() {
    StatusBar.hide();
}

Hope it helps!

References:
Plugin: https://github.com/apache/cordova-plugin-statusbar
PhoneGap issue (GitHub): https://github.com/phonegap/build/issues/267

Leave a Reply

Your email address will not be published. Required fields are marked *