Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Website saved to homescreen (ios) force open in safari

I am working on somewhat of a webapp, the client would like the ability to save to homescreen (default behavior) but when the end user opens the app saved to the homescreen it opens in safari rather then in "webapp" mode.

An example of such is on espn's mobile site: http://m.espn.go.com/

Note by saving to homescreen, then accessing... It opens in safari.

Thanks!!

like image 571
rkingon Avatar asked Nov 03 '22 13:11

rkingon


2 Answers

I believe the web app will always open in Safari, but you can change the behavior of how it opens so it might not feel like it's opening in Safari. Check out these page on how to use some apple-specific meta tags:

https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html

https://code.tutsplus.com/tutorials/configuring-an-iphone-web-app-with-meta-tags--mobile-2133

like image 181
Cecchi Avatar answered Nov 12 '22 19:11

Cecchi


<meta name="apple-mobile-web-app-capable" content="yes" /> 
like image 26
rkingon Avatar answered Nov 12 '22 20:11

rkingon