javascript - Cordova StatusBar plugin not working -


i have searched hours on website , others , can't find solution.

using this plugin, need have status bar have styledefault on home page, , stylelightcontent on every other page. testing xcode simulator, can set style globally use of <preference name="statusbarstyle" value=“default" />, when try set lightcontent javascript after leaving home page, doesn’t work.

for example, in app.js following nothing:

document.addeventlistener("deviceready", ondeviceready, false); function ondeviceready() {     statusbar.hide(); } 

and calling statusbar.hide() or statusbar.styledefault() when i’m loading page breaks it. text-editor (brackets) suggests available properties/methods of statusbar when i’m typing it, when when testing browser says statusbar undefined.

what problem?


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

1111. appearing after print sequence - php -

android - How to create dynamically Fragment pager adapter -