Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 7 web app status bar

I'm building an iOS web app. Since updating to iOS 7 I'm noticing the status bar has a number of issues. I'd like to get the status bar to show as white with black text/icons but I can't seem to figure it out.

The meta tags I've tried are:

Shows just an empty black bar and shifts content down:

<meta name="apple-mobile-web-app-status-bar-style" content="default" />

Shows a black bar with white text/icons:

<meta name="apple-mobile-web-app-status-bar-style" content="black" />

Shows a white bar with white text/icons:

<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />

Any ideas about what I'm doing wrong or how to get the status bar to show up as a white background with black text?

like image 939
Phil Avatar asked Sep 26 '13 19:09

Phil


2 Answers

"translucent" does work for iPhones, but it is hit or miss.

You might get lucky by putting some css inside of
@media only screen (height: "iPHONES HEIGHTs"px) and (width: 320px) { }.

The only way I got it to work on my iPad is by saving the webpage as translucentthen changing the webpage to "black-translucent" and relaunching the webapp.

7.0.4 came out today and it's still a problem. Come'on Apple :(

like image 148
BVSK Avatar answered Oct 27 '22 03:10

BVSK


I'm building an iOS web app. Since updating to iOS 7 I'm noticing the status bar has a number of issues. I'd like to get the status bar to show as white with black text/icons but I can't seem to figure it out.

I did it. Here is answer for you.

https://github.com/BYODKM/pwdGen/blob/gh-pages/index.html#L8-L16

Point is; App should be saved with "black-translucent" onto Home Screen, but run with "default".

like image 38
Tomohiro Avatar answered Oct 27 '22 02:10

Tomohiro