Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49186

StatusBar backgroundColor not working

$
0
0

@IonicExtreme wrote:

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(https://github.com/apache/cordova-plugin-statusbar) 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 :smiley:

.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();

}
});
})

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>