Reputation: 5758
Well, i know the title look like general question which will be discussed.
There is a site that selling mobile website webapp.to
but if we open/download one of their work/portfolio like webapp.to/schoolofsurf
from our iphone. Then the site will opened on safari. Then the website we open will also suggest us to Add to Home Screen
and then icon appear on Home Screen like an normal application, which it when we open it, it is normally open safari and go to that website.
But, what the real happen is the app is look like it opened stand-alone without safari.
How did they do that?
Please look at screenshot below for more graphic explanation:
Upvotes: 1
Views: 70
Reputation: 5267
You need to add a meta tag that tells Safari your webapp is "app capable". Have a look here https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html.
You can specify the home screen icons using a set of "link" tags. See here https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html.
Upvotes: 2