码迷,mamicode.com
首页 > 移动开发 > 详细

Web App Manifest

时间:2017-06-09 22:42:38      阅读:309      评论:0      收藏:0      [点我收藏+]

标签:sid   out   bsp   asp   mode   this   color   ack   get   

Web App Manifest

  The web app manifest provides information about an application (such as name, author, icon, and description) in a JSON text file. The purpose of the manifest is to install web applications to the homescreen of a device, providing users with quicker access and a richer experience.

  Web app manifests are part of a collection of web technologies called progressive web apps, which are web applications that can be installed to the homescreen of a device without needing the user to go through an app store, along with other capabilities such as  being available offline and receiving push notifications.

  


  Web app manifests are deployed in your HTML pages using a link tag in the head of your document:

<link rel="manifest" href="/manifest.json">

 

"display": "standalone" 

Display ModeDescriptionFallback Display Mode
fullscreen All of the available display area is used and no user agent chrome is shown. standalone
standalone The application will look and feel like a standalone application. This can include the application having a different window, its own icon in the application launcher, etc. In this mode, the user agent will exclude UI elements for controlling navigation, but can include other UI elements such as a status bar. minimal-ui
minimal-ui The application will look and feel like a standalone application, but will have a minimal set of UI elements for controlling navigation. The elements will vary by browser. browser
browser The application opens in a conventional browser tab or new window, depending on the browser and platform. This is the default.  (None)

参考:https://developer.mozilla.org/en-US/docs/Web/Manifest

Web App Manifest

标签:sid   out   bsp   asp   mode   this   color   ack   get   

原文地址:http://www.cnblogs.com/tekkaman/p/6973880.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!