Apple add icon to home screen open in Safari only

3.5k views Asked by At

I have created numerous resolutions of apple-touch-iconfor my website. This means when someone adds my website to their Apple device Home Screen it has that icon. However when you click the icon it opens in a standalone window, rather than in the Safari browser.

I have tried using <meta name="apple-mobile-web-app-capable" content="no">but this doesn't seem to do anything.

Is there a way of preventing this from happening and make the webpage open in Safari only?

1

There are 1 answers

2
jmarceli On BEST ANSWER

I think I found a way. Remove these lines from <head> section:

<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">

And remove minimal-ui from:

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">

(if defined)

Here is the source: https://discussions.apple.com/thread/5967053?tstart=0

If your app doesn't have that <meta> tags it should open directly inside Safari (at least mine does).