cheeaun / hackerweb

A simply readable Hacker News web app
http://hackerwebapp.com/
1.23k stars 133 forks source link

added apple mobile web app capable meta tags #46

Open scraymer opened 9 years ago

scraymer commented 9 years ago

Not sure if reasoning for only using the chrome meta tag for mobile web app capable but I added the apple version too so my iOS8 iPhone and iPad will understand that it can be rendered as a native web app when added to the home screen. I understand if this was left out because of the refresh issue when opening a external link and comping back to native web app but for how I use it, it works fine. If this is merged in, I will delete my repository, otherwise, I will keep it in sync so I can use it in native web app mode for myself. Love the app and how clean it is, cheers.

cheeaun commented 9 years ago

Interesting. So how do you go "back" on iOS8? I'm using iOS9 so can't try it anymore :smile:

Also, apple-mobile-web-app-status-bar-style with black doesn't work anymore in iOS9 Mobile Safari :sob:

scraymer commented 9 years ago

You can never go back in operating systems, apple has made sure of that :wink: However, If you really wanted to test for backwards compatibility, you could always use the xCode simulator on OS X.

As for iOS9, apple-mobile-web-status-bar-style will ignore the content="value"attribute and will instead use the color of the device. Therefore, if your iOS9 device front colour is white, it will be white background with black text, else black background with white text. The same colour as the startup background when you boot an iOS devices for the background and the same colour of the apple logo for the text.