I currently have the problem that my iPhone doesn't show the content down to the bottom of the screen in web apps when I use the status bar style black-translucent
.
There's always a gap at the bottom.
I created a minimal example using a simple footer-bar to demonstrate it:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover">
<style>
body {
background-color: DarkGray;
}
#footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
height: 54px;
background-color: DimGray;
}
</style>
<title>Test</title>
</head>
<body>
<div id="content"></div>
<div id="footer"></div>
</body>
</html>
The problem only exits only on the iPhone in portrait orientation and only when saving the app to homescreen, so it runs fullscreen. Desktop browsers also render the page correctly.
Here's a screenshot how it looks on the iPhone (normally the darker gray bar should be directly at the bottom):
Any idea what's exactly happening here and how to solve it?