fix(statusbar): hide status bar correctly - #2000
Conversation
- Hide the real Android status bar through the built-in API and allow it to be temporarily revealed by swipe. Respect the system status-bar visibility when calculating Cordova's faux status-bar inset, preserving compatibility with cordova-plugin-statusbar. - Fixes #592 Generated-By: GPT-5.6 Terra
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2000 +/- ##
=======================================
Coverage 63.20% 63.20%
=======================================
Files 24 24
Lines 4922 4922
=======================================
Hits 3111 3111
Misses 1811 1811 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Confirm that this matches the behaviour on iOS, because I'm pretty sure it only hides the background there. The intention for apps that want to do more complex things with the status bar (such as hiding it entirely) was to use either |
|
Since it's clear now that on iOS the system status bar is hidden when |


Platforms affected
Motivation and Context
Calling
window.statusbar.visible = falsesets the background of the statusbar 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.Description
Generated-By: GPT-5.6 Terra
Testing
Checklist
(platform)if this change only applies to one platform (e.g.(android))