Content goes to the top when building on iOS (Cordova)

Viewed 16

The problem is this: when building a project on . iPhone 12 and up. The upper part of the content "climbs" on the status bar.

Added:

<meta name="viewport" content="initial-scale=1, width=device-width, height=device-height, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover">

Plugins:

cordova-plugin-add-swift-support cordova-plugin-ionic-webview cordova-plugin-statusbar

Screenshot

1 Answers

After install cordova-plugin-statusbar try to add following line in config.xml file

<preference name="StatusBarOverlaysWebView" value="false" />
Related