<分区>
<分区>
我遇到了一些奇怪的事情。
如果您进入此链接:http://www.pointer4u.co.il/ifleet 然后将其添加到主屏幕,当您打开应用程序时,它不会打开浏览器,而是像真正的 native 应用程序一样打开它,我发现这对于内部应用程序的分发来说非常棒。
现在这个网络应用程序(当添加到主屏幕时)不仅隐藏了 UI 组件,而且在加载时显示加载屏幕,而不是常规的浏览器加载显示。
另一个例子你可以找到Here
他们是怎么做到的?
最佳答案
//this is the key for hiding Safari's Top Bar and bottom bar when launch from Home screen short cut.
//If this is no, following three lines has no effect.
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<link rel="apple-touch-startup-image" href="URL_TO/320_460_loading.png" />
<link rel="apple-touch-startup-image" sizes="640x960" href="URL_TO/640_920_loading.png" />
关于android - "Add To Home Screen"如何打开没有浏览器组件的网页?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13265128/