Android status bar shown on touch

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!

To whom it may concern, I have managed to fix the issue, enabling immersive full screen directly in the Android code, adding this block at the bottom of the onCreate function.

    View decorView = getWindow().getDecorView();
    final int opts =
      View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
      View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
      View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
      View.SYSTEM_UI_FLAG_HIDE_NAVIGATION |
      View.SYSTEM_UI_FLAG_FULLSCREEN |
      View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;

    decorView.setOnFocusChangeListener(new View.OnFocusChangeListener() {
      @Override
      public  void onFocusChange(View v, boolean hasFocus) {
        if (hasFocus) {
          decorView.setSystemUiVisibility(opts);
        }
      }
    });

    decorView.setOnSystemUiVisibilityChangeListener(new View.OnSystemUiVisibilityChangeListener() {
      @Override
      public void onSystemUiVisibilityChange(int visibility) {
        decorView.setSystemUiVisibility(opts);
      }
    });