Hi,
I’m referring to this exact problem, which never got answered:
Hello, i am developing an application in which i try to adjust the color of the statusbar in android.
I have managed to set this color to black when the application runs and i have no trouble with switching those colors.
My problem though is whenever i boot the app, the statusbar takes a blue color for about a second or more and then changes to the color i want.
[image]
( You can see in the gif : App starts -> Statusbar blue -> Statusbar black + app running. )
Where does this come from ? …
I have set status bar color in app.js run function like it should be. However it for some odd reason flashes blue before turning into my desired color which is #333333 .
I’m guessing that Ionic run function doesn’t apply it early enough and it picks Android default color for half a second. Where can I change this?
hide your splashscreen manually after you set your statusbar style?
Hey,
I’m kinda new on these things so could you give me an example so I understand better? Thanks for the reply!
you can hide/show the splashscreen manually:
http://ngcordova.com/docs/plugins/splashscreen/
and there is a plugin to change statusbar on the fly:
http://ngcordova.com/docs/plugins/statusbar/
So on App-Start change the statusbar settings and hide the splashscreen afterwards
Like this?
$ionicPlatform.ready(function($cordovaSplashscreen, $cordovaStatusbar){
if(cordova.platform === 'android'){
$cordovaStatusbar.styleHex("#333333");
}
$cordovaSplashscreen.hide();
});
yeah. but you should check your config.xml if there are settings, which hides the splashscreen automatically