31

I know this question has been asked previously, just want to know if this is still the case in ios 10 (and ios 9)...

According to the apple developer guidelines for web apps (found here), there are 3 choices for the status bar in a web app; default, black and black-translucent.

  1. Default results in a white status bar with black text,
  2. Black results in a black status bar with white text, and
  3. Black-translucent results in a transparent background with white text. Additionally, this status bar floats above your content, meaning you have to push your content down 20px in order to not have the content overlap with thte status bar text.

I'd really like to use the black-translucent status bar (as I think it looks more native), but the background of my page is a light grey. This makes the white text on this status bar very hard to read.

Put simply, I'd just like a transparent background with black text (essentially, default-translucent). Is this possible?

Brad
  • 1,019
  • 1
  • 9
  • 22

3 Answers3

52

Unfortunately, No you cannot have black text on a transparent background.

I'm of the opinion that this will be added to the schema at some point and also find it a pain that you can't achieve this example right now. I guess in short the answer is design your faux app natively to achieve greater control of its behaviour and appearance.

Apple Documentation Supported Meta Tags


content="default"

Default apple-mobile-web-app-status-bar-style


content="black"

enter image description here


content="black-translucent"

enter image description here

Community
  • 1
  • 1
Matt
  • 2,450
  • 5
  • 30
  • 36
  • 2
    Thanks for the answer @Matt, seems like a glaring oversight on Apple's part but I guess I'll just have to wait! – Brad Nov 24 '16 at 19:52
  • You're welcome @Brad :-) I completely agree, i'm developing an admin/dashboard that works well as a web app and wish there was slightly more control / options available! – Matt Nov 26 '16 at 16:56
  • 1
    I have these two meta tags added but the statusbar black text gets hidden due to my application's black navigation bar. ` ` What should I do to get the status bar text in white color? – Mrunal Jun 29 '17 at 12:12
  • I am not able to change Status bar color on iOS 10. is there any other meta tag I need to use? other than described in this link – Gaurav Jul 14 '17 at 06:42
  • https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html – Gaurav Jul 14 '17 at 06:43
18

I found the solution! We can achieve that with theme-color meta tag.

<meta name="theme-color" content="#fff">
theMukhiddin
  • 1,027
  • 8
  • 10
9

It currently isn't possible. I just wanted to add (after reading a comment) that in order for the changes to show up, at least on my iphone X, you will need to delete the app from your phone then re-add it to the home screen.