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
Post a Comment