我只是在构建一个静态 HTML 页面,我想让它可以安装。
清单.json
{
"name": "YYY",
"short_name": "YYY",
"icons": [
{
"src": "android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone",
"start_url":"index.html"
}
索引.html
<head>
<link rel="apple-touch-icon" sizes="180x180" href="https://xxx.png">
<link rel="icon" type="imageits-not-the-real-one/png" href="https://xxx.png"
sizes="32x32">
<link rel="icon" type="imageits-not-the-real-one/png" href="https://xxx.png"
sizes="16x16">
<link rel="manifest" href="https://my-manifest-its-not-the-real-one.json">
..
项目结构
错误
清单:属性“start_url”被忽略,应该与文档的来源相同。