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.
( You can see in the gif : App starts -> Statusbar blue -> Statusbar black + app running. )
Where does this come from ? Can anyone give me directions on how to fix this?
Edit : A snippet of the app.js’s run function where I set the black StatusBar.
if (window.StatusBar) {
$cordovaStatusbar.overlaysWebView(true);
StatusBar.styleDefault();
if (ionic.Platform.isAndroid()) {
StatusBar.backgroundColorByHexString("#000000");
}
}