Bug Report
According to the blog post of the Cordova Android 15.0.0 release, the StatusBar plugin has become redundant since its functionality is integrated in Cordova Android. However, I'm getting different results between using the StatusBar plugin or the integrated functionality.
Problem
Scenario A:
- Add StatusBar plugin
- Inside the device ready event, call:
StatusBar.hide();
- Result: the statusbar completely disappears and the webapp content fills the freed-up space. When the user slides down from the top, the status bar appears (over the content) with a translucent background and after a short while, disappears again.
Scenario B:
- Remove StatusBar plugin
- Inside the device ready event, call:
window.statusbar.visible = false;
- Result: the background of the statusbar becomes transparent, but the content of the statusbar is still visible (clock, connectivity, battery and such). The webapp content fills the freed-up space, but now overlaps with the remaining statusbar content. When the user slides down from the top, nothing happens. There's no way to make the statusbar content disappear.
What is expected to happen?
The result of scenario A is what I would expect and prefer to happen.
What does actually happen?
The result of scenario B.
Information
Both scenarios have AndroidEdgeToEdge not set in the config.xml (defaults to false).
Command
cordova run android
Environment, Platform, Device
I've tested this on a Pixel 3a running Android 12 and a Pixel 8 running Android 16.
Btw, the latter has a camera notch and I was happy to see the content of the webapp staying within the safe zone.
Version information
- Cordova CLI 13.0.0
- Cordova Android 15.0.0
- cordova-plugin-statusbar 4.0.0
Checklist
Bug Report
According to the blog post of the Cordova Android 15.0.0 release, the StatusBar plugin has become redundant since its functionality is integrated in Cordova Android. However, I'm getting different results between using the StatusBar plugin or the integrated functionality.
Problem
Scenario A:
StatusBar.hide();Scenario B:
window.statusbar.visible = false;What is expected to happen?
The result of scenario A is what I would expect and prefer to happen.
What does actually happen?
The result of scenario B.
Information
Both scenarios have AndroidEdgeToEdge not set in the config.xml (defaults to false).
Command
cordova run android
Environment, Platform, Device
I've tested this on a Pixel 3a running Android 12 and a Pixel 8 running Android 16.
Btw, the latter has a camera notch and I was happy to see the content of the webapp staying within the safe zone.
Version information
Checklist