Cordova Android 15: StatusBar plugin deprecation, overlay behavior, back button & keyboard resize issues #585
Replies: 3 comments 1 reply
This comment was marked as off-topic.
This comment was marked as off-topic.
-
I believe Android's EdgeToEdge effectively makes this behaviour fixed to "enabled", that is the statusbar is overlaid on top of the app content (that is the webview). Apps must use CSS safe-area-inset-* variables to ensure readable or interactive content is padded to clear the statusbar or other potential obstacles the device might have.
If you support the iOS platform, I believe cordova-ios@8 implements the status bar API at the core, like Android, making the plugin completely obsolete, with the caveat noted above regarding
This wouldn't be a supported configuration and probably won't work, or will run into state conflicts.
Fixes are planned but are subjected to volunteer time.
Are you sure this is a behaviour change? Can this behaviour be observed using the basic "Hello World" cordova template app? I've been using Cordova for about a decade now and I feel like the keyboard has never resized the webview by default and testing against one of my apps still using cordova-android@14 I'm seeing the webview not being resized when the keyboard is opened. There is no cordova preference that is available to adjust the behaviour, but I think that behaviour is configurable natively via AndroidManifest.xml, which you might have a hook or If it's demonstrable that the behaviour changed in the basic template app between cordova-android@14 and @15, then this could be an issue to be reported on cordova-android repo. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the clarification! @breautek Regarding the keyboard resize behavior, I wanted to add some additional context. Previously (prior to enabling Edge-to-Edge), using:
would resize the WebView correctly when the keyboard opened. The app draws behind system bars From what I understand, this is due to how Edge-to-Edge impacts layout and insets handling in Android, rather than a direct Cordova preference. Could you confirm: Is this behavior expected with Edge-to-Edge enabled? And I see https://github.com/apache/cordova-android/blob/master/framework/src/org/apache/cordova/CordovaActivity.java#L221 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
After upgrading to cordova-android@15.0.0, I have a few questions and issues regarding recent platform changes, especially around status bar handling and layout behavior.
Would appreciate clarification and guidance.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions