I am newbie in IONIC 3, I just want to implement status bar to my app. I tried following methods.
import { App, Nav, Platform, Events, AlertController } from 'ionic-angular';
import { StatusBar } from '@ionic-native/status-bar';
constructor(public events: Events, public platform: Platform, publicstatusBar: StatusBar) {
this.statusBar.overlaysWebView(true);
this.statusBar.backgroundColorByHexString('#1972d2');
this.statusBar.isVisible;
}
and Changed in index.html page as solution mentioned in this link
<meta name="theme-color" content="#1976d2">
and also mentioned in config.xml page like this
<preference name="StatusBarBackgroundColor" value="#1972d2" />
<preference name="StatusBarOverlaysWebView" value="true" />
What might be the issue? Please help me.