apache / apache/cordova-android
cordova-android@15 webview truncated at bottom
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 1.6k
- Avg merge
- 16h 18m
- Merged PRs (30d)
- 11
Description
# Bug Report
## Problem
### What is expected to happen?
Updating to cordova-android@15 should render the same size webview as it did in 14. If I revert to 14 it works as expected.
### What does actually happen?
After updating an app to cordova-android@15 the bottom of the webview is truncated and not filling the device screen. As per the release blog I have removed cordova-plugin-splashscreen, cordova-plugin-statusbar - I was also using and have removed cordova-plugin-fullscreen and cordova-plugin-android-edge-to-edge. Removed and re added cordova-android@15. The app boots with full screen splashscreen then opens up with the bottom of the webview truncated.
If I look at the webviews in the chrome://inspect/#devices I can see the truncation:
If I turn on preference name="Fullscreen" value="true" the app renders corrently in full screen view.
On my real test device if I put the app into desktop workspaces the size of the app is correct and when I select Remove from desktop workspace the app temporarly goes to the right size and then reduces back to the truncated size.
### Version information
Cordova - 13.0.0
Cordova-Android 15.0.0
### Plugins in Use
branch-cordova-sdk 6.5.1 "branch-cordova-sdk"
com.itbeyond.storage 5.0.0 "StoragePlugin"
cordova-background-geolocation 4.18.0 "BackgroundGeolocation"
cordova-plugin-add-swift-support 2.0.2 "AddSwiftSupport"
cordova-plugin-app-review 3.1.0 "AppReviewPlugin"
cordova-plugin-background-fetch 7.2.4 "CDVBackgroundFetch"
cordova-plugin-battery-status 2.0.3 "Battery"
cordova-plugin-camera 8.0.0 "Camera"
cordova-plugin-device 3.0.0 "Device"
cordova-plugin-file 8.1.0 "File"
cordova-plugin-file-opener2 4.0.0 "File Opener2"
cordova-plugin-inappbrowser 6.0.0 "InAppBrowser"
cordova-plugin-insomnia 4.3.0 "Insomnia (prevent screen sleep)"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ios-disableshaketoedit 1.0.0 "iOS Disable Shake to Edit"
cordova-plugin-mediapicker-dmcsdk 2.5.1 "MediaPicker"
cordova-plugin-network-information 3.0.0 "Network Information"
cordova-plugin-openwith 1.0.0 "OpenWith"
cordova-plugin-purchase 13.13.1 "Purchase"
cordova-plugin-statusbar 4.0.0 "StatusBar"
cordova-plugin-tts 0.2.3 "TTS"
cordova-plugin-wkwebview-file-xhr 3.1.1 "Cordova WKWebView File XHR Plugin"
cordova-plugin-x-socialsharing 6.0.4 "SocialSharing"
cordova-plugin-zip 3.1.0 "cordova-plugin-zip"
cordova-sqlite-evmax-build-free 0.1.1 "Cordova sqlite storage"
cordova-support-android-plugin 2.0.4 "cordova-support-android-plugin"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-deeplinks 1.0.22 "Ionic Deeplink Plugin"
@havesource/cordova-plugin-push 7.0.0 "Cordova Push Plugin"
## Checklist
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
Contributor guide
Research direction
Start by reproducing the webview sizing difference between cordova-android 14 and 15 on the reported device, with and without the Fullscreen preference. Inspect the Android webview and fullscreen handling involved in cordova-android 15. Done means the webview fills the device screen without requiring Fullscreen, while preserving the expected behavior from version 14.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, javascript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100