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

I add the following meta tag to the head section using HTMLheader in my web project, but no matter what I pass in as the content “default”, “black” etc the header bar on the iDevice disappears. Does anyone know what the content should be set to to leave the header status bar on the iDevice visible?

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

I’ve had success with the following Session.PrepareSession event…

[code]Sub PrepareSession(ByRef HTMLHeader as String)
HTMLHeader = HTMLHeader + EndOfLine _

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

End Sub
[/code]
I think you need to drop “meta-” from the beginning of your meta name.

Thanks that works great now, didnt spot that I had the name wrong, been looking at this issue on and off for months. :wink:

[quote=85887:@Ian Jones]I’ve had success with the following Session.PrepareSession event…

[code]Sub PrepareSession(ByRef HTMLHeader as String)
HTMLHeader = HTMLHeader + EndOfLine _

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

End Sub
[/code]
I think you need to drop “meta-” from the beginning of your meta name.[/quote]

I know it has been a while, but this is the only place where I found mention of it.

I just spent an hour or so trying to get and apple-mobile-web-app-status-bar-style work starting in HTML and then following your method.

According to the Safari reference http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html it should work, yet neither on iPhone nor iPad under iOS 8.1 does it work. Would it be a new thing since what you posted was in the iOS 7 era ? Unfortunately, I have no iOS 7 device to test it on.

Darn edit won’t work when needed — Sorry for the question, I just found out the full screen meta is only honored when the app is added to the home screen !

Glad you worked it out. It does seem to still work for iOS 8.1, although I can’t say it’s 100% effective, I occasionally find I have a status bar for no apparent reason.

It is a pity that Apple rendered all other previous methods to hide the status bar that worked up until 7.1 obsolete.

The header behavior has not changed (the bar with the carrier, signal strength, URL, etc) between iOS 7 and iOS 8. In fact, I believe this has worked since iOS 6. That’s what this meta tag is for… Hiding this bar when your app is being launched from the home screen so it can appear to be a standalone app. If you are inserting this tag, make sure the attribute names and values are exactly correct. If it’s not, the browser will ignore it.

I was not referring to that. I verified the tags indeed work fine when the app is placed on the home screen.

There was another method, which was to scroll 1 point up with JavaScript, which worked dynamically for pages launched the normal way, and no longer does.