StatusBar.backgroundColorByHexString not working

Hi all,

This is my code:

  ionic.Platform.ready(function() {
	  if (window.StatusBar) {
	    // org.apache.cordova.statusbar required
		    StatusBar.overlaysWebView(false);
		    StatusBar.backgroundColorByHexString('#000000');
	  }
	});

I want to change the status bar color, but whatever I do: it doesn’t work at all!

I’ve checked everything and tried everything that is stated here: http://ionicframework.com/docs/v2/native/status-bar/

Not working at all. Can someone help me please?

PS: testing on Ionic View

1 Like

I have the same issue.
The status bar color did change in android emulator but has no effect at all for real android device.

I have used below code and it works for me.

var isAndroid = ionic.Platform.isAndroid();
if (isAndroid) {
StatusBar.backgroundColorByHexString("#e21337");
}