我想Install
在这个网站上有一个功能:
https ://lacasadehamburguer.grandchef.com.br/?fbclid=IwAR14WN_LkR92kT8rocPFk4CqEEyAlXA4hA7Gl3SASc_eEg972RG5QckzgvM
当用户单击按钮Install
时,它会将插件作为“已安装”添加到 chrome 中,并在用户桌面上创建一个快捷图标。
这个功能怎么称呼?
我想Install
在这个网站上有一个功能:
https ://lacasadehamburguer.grandchef.com.br/?fbclid=IwAR14WN_LkR92kT8rocPFk4CqEEyAlXA4hA7Gl3SASc_eEg972RG5QckzgvM
当用户单击按钮Install
时,它会将插件作为“已安装”添加到 chrome 中,并在用户桌面上创建一个快捷图标。
这个功能怎么称呼?
您必须为您的 PWA 编写一个manifest
文件,它描述您的应用程序、版本、主题颜色、应用程序图标等...
清单文件如下所示:
{
"background_color": "orange",
"description": "Cute and random little cat pictures.",
"display": "fullscreen",
"icons": [
{
"src": "icon/cat-icon.png",
"sizes": "192x192",
"type": "image/png"
}
],
"name": "Cute cat pictures",
"short_name": "Cats",
"start_url": "/pwa-examples/a2hs/index.html"
}
您可以通过从浏览器安装 PWA 来测试它,这就是您在 Google Chrome 上安装它的方式:
+
图标,单击它并选择Install
chrome://apps/
并右键单击应用程序图标并选择Remove from Chrome
您可以在此处阅读有关此清单文件的更多信息: