Hello guys, I’m trying to change the color of my statusbar . To develop I use VS 2015 Community , and I’m with the plugin installed … I am following more documentation(GitHub - apache/cordova-plugin-statusbar: Apache Cordova Status Bar Plugin) still does not. Note the " Hide" Works .
Version: 0.1.10 (StatusBar)
IONIC Cli: 1.7.10
Cordova Cli: 5.4.1
Thanks in Advanced
.run(function($ionicPlatform) { $ionicPlatform.ready(function() {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
if (window.StatusBar) {
// org.apache.cordova.statusbar required
//StatusBar.styleLightContent();
// StatusBar.backgroundColorByName(“red”);
// I TRY StatusBar.backgroundColorByName("red"); StatusBar.backgroundColorByHexString("#FF0000");
// ITS WORK StatusBar.hide();
}
});
})