I have build a app using Ionic 2.When i run it in browser,the UI is looking good but as soon as i run in iOS simulator,everything seems bulky.The issue is with Status bar.I need to hide the status bar.I tried with StatusBar from ionic-native,like this-
import {StatusBar} from 'ionic-native';
constructor(platform: Platform) {
platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
StatusBar.hide();
//StatusBar.styleDefault();
});
But in reality its not hiding the status bar,instead its just overriding status bar colour with my page header colour.Any solution of hiding status bar.
I am working on ionic3 and hope it will work for ionic 2 also. I was also in the need of same and here is my local setup-
Now make changes in following files as-
config.xml
Component.ts
That worked for me.