Is there a way to disable the status bar in iPhone web apps? I'm working on something that requires a fixed, fullscreen view, and the status bar is rather annoying.
-
Are you talking about the bar on top? – SLaks May 23 '10 at 23:39
-
I don't think that's possible in a web app. – SLaks May 23 '10 at 23:52
8 Answers
This is not possible.

- 66,414
- 68
- 253
- 406
-
However please go to http://bugreport.apple.com and file a request for this enhancement, adding enough weight to this will eventually result in Apple implementing it. – duncanwilcox Aug 25 '11 at 22:37
-
2
-
44
-
1A workaround suggestion : Use translucent mode, set page background to white and add some margin from top. :) – Cihan Yakar May 09 '17 at 07:53
-
Unfortunatly, no. There are only two options black
and black-translucent
. Just note that with black-translucent
part of the web frame will be partially visible under the status bar while using black
actually pushes the web frame down so it's height is a little smaller.
This is what Apple says in their documentation:
<meta name="apple-mobile-web-app-status-bar-style" content="black">
This meta tag has no effect unless you first specify full-screen mode as described in “apple-mobile-web-app-capable.”
If
content
is set todefault
, the status bar appears normal. If set toblack
, the status bar has a black background. If set toblack-translucent
, the status bar is black and translucent. If set todefault
orblack
, the web content is displayed below the status bar. If set toblack-translucent
, the web content is displayed on the entire screen, partially obscured by the status bar. The default value isdefault
.

- 9,340
- 5
- 39
- 42
I've seen that you might have to remove the web application from your home screen, and then add it again, if you've added the meta tag, for it to make any difference. Worked for me.

- 31
- 1
This is, at least by now, possible.
You need to add a manifest.json
to your index.html:
<link rel="manifest" href="manifest.json">
In projects like Angular, React or Vue don't forget to include this file in the assets otherwise your browser will not know about this file.
You can build your manifest.json like this
{
"name": "Your App-name",
"short_name": "short",
"display": "standalone",
"orientation": "landscape",
"start_url": "http://linkToYourSite:4200",
"scope": "http://linkToYourSite:4200",
"icons": [{
"src": "assets/images/logo.png",
"sizes": "64x64",
"type": "image/png"
}]
}
It is essential that the start_url and the scope are identical or the start_url is at least within the scope. If you then save your app as a Progressive Web App on your device, all pages within the scope will be displayed without a status bar.

- 93
- 5
The closest I could get (iOS7, I think iOS6 would show darkened status bar) shows the status bar but with a transparent background and does not push down the content of the page; so you would see the network connection time and battery percent and time at the top of your app.
meta tags:
name="apple-mobile-web-app-capable" content="yes"
name="apple-mobile-web-app-status-bar-style" content="black-translucent"
Also, to view any changes requires you to delete the app from your homescreen then add it back again.
As mentioned by andyg303:
minimal-ui might have worked on beta, but tested and doesn't work on iPhone (iOS 7.1.2 4s) or iPad (v2 7.1.2).

- 13,303
- 18
- 49
- 71

- 21
- 2
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
may be a partial solution:
https://i.stack.imgur.com/Ylhxt.png https://i.stack.imgur.com/lgGJV.png
You can see that the text on status bar can be hidden in the white background, but when you're scrolling, the text will still be there.

- 335
- 4
- 11
It was added in iOS 7.1
Simply add minimal-ui to the viewport meta tag, e.g:
Taken from here: https://forums.whirlpool.net.au/archive/2194915
Please note this only works for iPhone as far as I am aware, not iPad

- 1
<meta name="apple-mobile-web-app-capable" content="yes" />

- 9,752
- 6
- 44
- 57
-
"If content is set to yes, the web application runs in full-screen mode; otherwise, it does not. The default behavior is to use Safari to display web content. You can determine whether a webpage is displayed in full-screen mode using the window.navigator.standalone read-only Boolean JavaScript property. http://developer.apple.com/safari/library/documentation/appleapplications/reference/safarihtmlref/articles/metatags.html – Mike Atlas May 24 '10 at 00:08
-
3This definition of "fullscreen" does not hide the status bar. window.navigator.standalone = true, and the status bar persists. – Stefan Kendall May 24 '10 at 00:49