Closed robmonie closed 11 years ago
Currently this adds displays an unstyled 'add to home screen' message when accessing the root route on an ios device. If added to home screen from here, the app works as expected from the home screen. Needs styling, startup and icon images and likely some edge case fixes.
Awesome dude, love that!
On Sunday, August 18, 2013, Rob Monie wrote:
Currently this adds displays an unstyled 'add to home screen' message when accessing the root route on an ios device. If added to home screen from here, the app works as expected from the home screen. Needs styling, startup and icon images and likely some edge case fixes.
— Reply to this email directly or view it on GitHubhttps://github.com/stuliston/lastmanstand.in/issues/30#issuecomment-22824587 .
Cool! I've assigned myself to do the styling. I'll get back to you with something tonight.
I've tidied this up a bit so it's not terrible like it was. Feel free to make this better at any point. Closing for now.
So far, I've added one of the meta tags so that when it's added to home screen it displays without the location bar. This makes a big difference to the feel of the app.
To do:
When you add to the home screen, it uses whatever that url is so we'll need to make sure that when we ask the user to add to their home screen, the url is the root url. From then on, we need to be able to detect if the user is accessing from the home screen. If they are, don't show the splash screen and route based on regular logic.
http://stackoverflow.com/questions/8195741/how-do-they-do-this-mobile-site-added-to-homescreen-appears-as-standalone-app
http://developer.apple.com/library/IOs/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html