Chuckytuh commented on issue #114: URL: https://github.com/apache/cordova-discuss/issues/114#issuecomment-4131247340
I +1 on the missing feature that we used to have with `StatusBarOverlaysWebView`. Even though it was said on https://github.com/apache/cordova-android/pull/1817 that the new `AndroidEdgeToEdge` would allow to accomplish the same, it isn't true for < Android 15. With cordova-android 14 we didn't get any safe area insets being reported, even when using the statusbar plugin, however, using `AndroidEdgeToEdge` from cordova-android 15 we do get the insets being reported (albeit in some versions of the WebView they aren't properly reported as is well known). With the changes suggested on https://github.com/apache/cordova-android/pull/1902 the result is that insets are expected to be reported and handled by app developers to reposition elements accordingly, however, on those Android versions the default WebView versions pre-installed do not report the insets correctly due to WebView known bugs. But, when using cordova-android 14 it wouldn't be a problem because, even though insets aren't reported, they don't need to be handled at all by the webapp. See the following screenshots of a test app (https://github.com/Chuckytuh/cordovakeyboardtest/tree/cordova-android15-edgetoedge) running @seamlink-aalves changes in an Android 14 simulator running WebView version `113.0.5672.136`: | Portrait | Landscape left | Landscape right | |--------|--------|--------| | <img width="1080" height="2400" alt="Image" src="https://github.com/user-attachments/assets/ef2a8bbd-0d74-439b-a112-fc5bbaac5025" /> | <img width="2400" height="1080" alt="Image" src="https://github.com/user-attachments/assets/14998d98-db1c-424e-9fd1-dd04f92a4ae8" /> | <img width="2400" height="1080" alt="Image" src="https://github.com/user-attachments/assets/2540420a-7826-46a6-9d56-cc779ca9d7dc" /> | And running on WebView version `146.0.7680.119` in Android 14: | Portrait | Landscape left | Landscape right | |--------|--------|--------| | <img width="1080" height="2400" alt="Image" src="https://github.com/user-attachments/assets/75afd824-a5e2-4a04-ad23-da8fa01f7f51" /> | <img width="2400" height="1080" alt="Image" src="https://github.com/user-attachments/assets/eeffb491-c6e7-464a-99dc-841e53ae9bb6" /> | <img width="2400" height="1080" alt="Image" src="https://github.com/user-attachments/assets/b4426b77-2429-494a-a9b8-eeb9f3ced059" /> | -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
