Hello fellows!
I made work ngCordova $cordovaStatusbar, it works on Genymotion API 23 6.0.
I changed config.xml with this:
< preference name=“StatusBarBackgroundColor” value="#DF11FF" /> //pink
And it worked.
I changed also the app.js with:
$cordovaStatusbar.styleColor(‘orange’); //and .show(), and .hide()
And it worked!!
Now I go to my Android phone, running 6.0 too, Xiaomi Redmi Note 4, and It does NOT work at all.
Bar doesn’t change color, or hide/show. Here my .run:
.run(function($ionicPlatform, $cordovaStatusbar) {
$ionicPlatform.ready(function() {
if (window.StatusBar) {
$cordovaStatusbar.overlaysWebView(false);
$cordovaStatusbar.styleColor('orange');
$cordovaStatusbar.show();
}
});
})
I have added properly ng-cordova to index.html, and the ‘ngCordova’ to angular.module(‘starter’, [‘ionic’, ‘ngCordova’]
I did an app from zero, only to test this, no other conflicts.
Thanks a lot! : ')
PS: I have even modified the /plugins/cordova-plugin-statusbar/src/android/StatusBar.java file, i forced it to have one HEX color, instead of #000000 default, and nothing.