Web App Manifest

Posted Tekkaman

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Web App Manifest相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

如何让前端页面在浏览器当app安装网页应用PWA-web-app-manifest

将web项目打包成手机app的方法

app.manifest是啥文件,如何打开一个程序的manifeast文件?谢谢回答。

使用资产前缀时,由于缺少清单文件,Capistrano部署失败

超级有用的9个PHP代码片段

错误提示:'……' is not assignable to Android.app.Activity Manifest XML