$cordovaStatusBar returning undefined


#1

Hello.
I have been trying for many hours to try to style my status bar to no avail. I have used StatusBar and $cordovaStatusBar, neither of which have worked.

I have tried each of these:

.controller('ChooseCtrl', function($scope, $cordovaStatusBar) {
ionic.Platform.ready(function($cordovaStatusBar) {
    $cordovaStatusBar.style(0)
  });
})

and

    ionic.Platform.ready(function() {
    // changes the status bar using the StatusBar plugin
    StatusBar.styleDefault();
  });

#2

does not work on Android


#3

I am testing in the iOS simulator.


#4

The name of the var is $cordovaStatusbar - mind the capital “B” - this is wrong in some official docs.