fix: set android status bar color correctly

This commit is contained in:
Rainer Killinger
2022-09-16 14:12:09 +02:00
parent 855531fefb
commit b38a96996a

View File

@@ -87,6 +87,11 @@ export class AppComponent implements AfterContentInit {
});
this.platform.ready().then(async () => {
if (Capacitor.isNativePlatform()) {
await StatusBar.setBackgroundColor({
color: getComputedStyle(document.documentElement)
.getPropertyValue('--ion-color-primary')
.trim(),
});
await StatusBar.setStyle({style: Style.Dark});
}
await this.authNotificationsInit();