android - Can't set color of statusbar with cordova-plugin-statusbar -


i'm trying change color of native status bar in ionic app, can't work. i've installed cordova-plugin-statusbar, , installs fine. following code works perfectly:

if (statusbar) {     statusbar.hide(); } 

but trying use other of available functions, example:

if (statusbar) {     statusbar.backgroundcolorbyhex('#rrggbb'); } 

doesn't work, app uses standard statusbar.

i've added <preference name="statusbaroverlayswebview" value="true" /> config.xml, setting programmatically @ runtime.

cordova version 5.1.1, ionic version 1.5.5 , i'm using android 21 testing. has experienced same problem or know how fix it?

could try removing status bar plugin , reinstalling so:

ionic plugin rm org.apache.cordova.statusbar ionic plugin add https://github.com/apache/cordova-plugin-statusbar.git 

the same has been reported @ ionic issue tracker


Comments