Status bar not working in ionic 3


#1

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

and also mentioned in config.xml page like this

What might be the issue? Please help me.


#2

There are no links in the question.


#3

Its okay, Thanks for the reply.
I have resolve the issue by updating the status bar plugin and added this.statusBar.styleLightContent().
Its working fine now.


#4

glad you solved :slight_smile:
have a good day


#5

What did you update in plugin ?


#6

Just removed the plugin and gave cordova clean command and installed the plugin again.