ionic set primary status bar color code example
Example 1: ionic 4 status bar is dark
//FIX: Android - allows icons in statusbar to show clearly.
if (this.platform.is("android")) {
this.statusBar.styleLightContent();
}
Example 2: ionic status bar color
//in config.xml
...
<preference name="StatusBarBackgroundColor" value="#2873ED" />
<preference name="StatusBarOverlaysWebView" value="true" />
...