I was using Ionic View to test my app on an iPhone 5s and noticed that the navbar was directly under the statusbar (without the default margin). So i uploaded the default “MyIonic2Project” tutorial to Ionic View and it seems to do this as well:
Note that i simply did ionic start MyIonic2Project tutorial --v2 --ts and ionic upload
On Andoird it doesn’t do this (neither in Ionic View nor by installing the apk).
Here is my ionic info:
Unfortunately I can’t test it on an ios emulator as I don’t have Xcode (yet)…
I have the problem that the statusbar height changes. On the root view there is no back button and the statusbar is smaller and the title overlaps with the iOS icons. On pages with back button the bar gets larger and the text is correctly positioned.
The following variable in theme/variables.scss changes the default height:
$toolbar-ios-height: 70px; //default: 44px
However, with back button the statusbar gets event larger. So this is only a partial fix.
Update: using the follow Sass code on the root component works.
page-home {
.toolbar-ios {
//workaround: statusbar height is too small on root view without home button
// -> manually set min-height on root view (verified on iOS 10)
min-height: 64px;
}
}