I am attempting to change the styling status bar (note: not the nav-bar). I have looked at the following posts and tried the methods there described with no success:
- http://learn.ionicframework.com/formulas/customizing-the-status-bar/
- iOS status bar font color
- Status Bar Issue iOS7
- http://ngcordova.com/docs/
after my main app module, I have tried most variations on this:
.run(function($ionicPlatform, $cordovaStatusbar) {
$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.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
if(window.StatusBar) {
// org.apache.cordova.statusbar required
StatusBar.styleDefault();
}
$cordovaStatusbar.style(1);
});
})
I have tried updating StatusBar.styleLightContent();
and $cordovaStatusbar.style(1);
I’m not sure which I should be updating and why it is not working on the simulator for iOS.