I’m developing an iOS Ionic app with Capacitor that uses a black or white Status Bar background color, depending if the device is on Light or Dark theme. By default the app changes the Status Bar style automatically according to the theme, so if the background is black I see white content (battery icon etc.) and if the background is white then I see black content. However if I use anywhere in the code:
StatusBar.setStyle({ style: StatusBarStyle.Dark });
The Status Bar style stops changing automatically. Is there a way of having this behavior back? Thanks for your comments.