Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

White space at the bottom of my cordova app on ios

Tags:

ios

cordova

I've build my cordova app on a mac and end up with white space at the bottom of my app. When I switch between apps and come back the white space is gone and the app is in fullscreen mode.

I use cordova plugin splashscreen and have this in my config.xml

<splash src="res/screen/ios/Default@2x~universal~anyany.png" />

The splashscreen size is 2732x2732px.

App with white space after opening the first time: App with wrong layout

App after I switch between apps and come back: App with good layout

Any ideas?

like image 753
DanTheMan Avatar asked Oct 20 '25 05:10

DanTheMan


2 Answers

Fixed the issue with these css lines:

html, body {
  width: 100vw;
  height: 100vh;
}
like image 195
DanTheMan Avatar answered Oct 21 '25 21:10

DanTheMan


This works for me https://github.com/quasarframework/quasar/issues/6695

remove cordova's Wkwebview plugin from your project, including cleaning your config.xml from the related entries install the ionic webview (which includes the Wkwebview plugin + their own improvements): cordova plugin add cordova-plugin-ionic-webview --save

like image 45
Diogenes Oliveira Junior Avatar answered Oct 21 '25 19:10

Diogenes Oliveira Junior



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!