android - "Add To Home Screen"如何打开没有浏览器组件的网页?

标签 android iphone ios mobile

<分区>

我遇到了一些奇怪的事情。

如果您进入此链接: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/

上一篇:iphone - 主 UIView 的 X 和 Y 坐标在界面生成器中不是 0,0

下一篇:ios - 一旦我更改了 Settings Bundle 中的设置,我的应用程序能否同时获得更改?

相关文章:

java - 我的应用程序非常大(10GB)。如何查看数据或错误代码?

iphone - 如何通过iPhone中的GPS位置管理器计算平均海拔

iphone - 保存用户界面颜色

ios - swift locationManager 清除区域缓存

ios - 使用 Swift 的 AppDelegate 中的 UINavigationBar setBackgroundImage

Android - 将文本文件保存到哪里?

android - 打开 ContextMenu 时抓取列表项 TextView 值

android - 约束布局的宽度和高度属性自动重置为 0dp

iphone - iPad 照片库中相册的属性

ios - 自定义 NSURLProtocol 不会调用 canInitWithRequest :