Hello there!
I have tried several methods.
Here is what I have right now (which should work):
constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {
platform.ready().then(() => {
statusBar.styleDefault();
statusBar.overlaysWebView(true);
statusBar.backgroundColorByHexString('#FF3B3F')
//splashScreen.hide();
})
}
But the StatusBar is still light blue (Testing on native Device Samsung S7 via ionic cordova run android --device
).
I have also tried the old way of adding this:
<preference name="StatusBarBackgroundColor" value="#FF3B3F" />
to the config.xml, but ofcourse it didnt change a thing.
Ionic info output:
cli packages:
@ionic/cli-utils : 1.19.2 ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.0.0