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

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -