Hi,
I am having trouble with the IOS status bar. I would like to have a background color on the status bar, like black background and white text.
This is how it seems with BrowserStack with iPhone 12 Pro
Not expected Result
Expected Result
I have tried many things that doesnt have worked (maybe i’ve implemented bad some ones):
- –ion-safe-area-top: env(safe-area-inset-top);
@awesome-cordova-plugins/status-bar/ngx;
@capacitor/status-bar
.hide() when Platform ready- checking content=“viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no”
- playing with ion-header classes like ion-padding, ion-border
- taking off
<key>UIStatusBarHidden</key>
<key>UIViewControllerBasedStatusBarAppearance</key>
in my index html I have this meta. its seems like doesnt do anything
<!-- add to homescreen for ios -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
The header is a component called menu that is called in main.page html in this way
<app-menu></app-menu>
<app-header></app-header>
<ion-content class="content" [fullscreen]="true">
<ion-router-outlet></ion-router-outlet>
</ion-content>
</div>
<ion-tabs>
...
</ion-tabs>
this is menu.component.html
<ion-menu side="start" contentId="main-content">
<ion-content>
<ion-list>
....
</ion-list>
</ion-content>
</ion-menu>
this is my menu.compoent.html
<ion-header class="ion-padding">
<ion-toolbar>
<ion-buttons slot="start">
....
</ion-buttons>
...
</ion-toolbar>
</ion-header>
Ionic -v 7.1.1
please, any suggestions? what should I try?