Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Full screen HTML on iOS device goes under status bar

Tags:

html

ios

ipad

When I use the full screen mode of Safari on an iOS device, my website's header is under the status bar. I am using jQuery Mobile but I also had the same issue using Twitter Boostrap. Here is my code:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="description" content="">
<meta name="author" content="">

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js">    </script>

</head>
<body>

I also took a screenshot of the problem. As you can see, my title bar is under the iPad's status bar. I have tried changing the apple-mobile-web-app-status-bar-style to different things but it's not affecting the status bar. The strange thing is, apple-mobile-web-app-status-bar-style, makes no difference no matter what I change it to.

enter image description here

like image 668
Keith Avatar asked May 17 '13 12:05

Keith


1 Answers

This is strange as your code looks correct. I have two suggestions:

  1. Try reversing web-app-capable and status-bar-style meta tags? Not that it should make any difference but all of my full screen web apps have them in the reverse order to you (ie: status-bar-style first).

  2. Try removing the home screen app and re-adding it after making the change? I've found all the meta tags for web-app specific elements (eg: status bar, icon, startup image etc) don't update properly all the time unless I do that.

like image 160
adnrw Avatar answered Sep 29 '22 03:09

adnrw