Eren Wow, you are a lifesaver! Even without any function calls, this plugin works correctly on screens with a notch, offsetting the viewport. (The main reason why I wanted to show the status bar)
Edit: I just realized that this plugin is already included when you tick "Hide status bar" during export, but you need to remove construct-mobile-notchfix to get the same effect.
.
Do you know how to show the status bar on top, but hide the navigation buttons on the bottom? I tried all these functions:
AndroidFullScreen.setSystemUiVisibility(AndroidFullScreen.SYSTEM_UI_FLAG_FULLSCREEN | AndroidFullScreen.SYSTEM_UI_FLAG_LOW_PROFILE, successFunction, errorFunction);
AndroidFullScreen.showUnderSystemUI(successFunction, errorFunction);
AndroidFullScreen.leanMode(successFunction, errorFunction);
AndroidFullScreen.immersiveMode(successFunction, errorFunction);
// this shows both the status bar and navigation buttons
AndroidFullScreen.showSystemUI(successFunction, errorFunction);