Hi all,
I need my app to run full screen.
I hide the status bar with the Capacitor plugin:
this.platform.ready().then(async () => {
StatusBar.hide({
animation: StatusBarAnimation.Slide
});
StatusBar.setOverlaysWebView({
overlay: true
});
...
and it works fine, except on Android.
On an Android device, whenever the user touches the top of the screen, or opens the keyboard, the status bar appears, and you need to minimize and re-open the app to have it closed again.
I have also configured the Android theme to hide the status bar:
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
Does anyone knows how to better manage the status bar on Android?
Thanks a lot!