【发布时间】:2020-09-04 03:10:51
【问题描述】:
运行 Google Chrome 审核时,我收到以下错误:
Web app manifest does not meet the installability requirementsFailures: Manifest does not have `short_name`, Manifest does not have `name`.
还有
Is not configured for a custom splash screenFailures: Manifest does not have a PNG icon of at least 512px, Manifest does not have `name`.
我在根目录中有一个app-files 以及如下所示的 manifest.json:
{
"name": "This is my long name",
"short_name": "short name",
"theme_color": "#cd061d",
"background_color": "#ececec",
"display": "browser",
"Scope": "/",
"start_url": "/index.php",
"icons": [
{
"src": "app-images/icons/icon-72x72.png",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "app-images/icons/icon-96x96.png",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "app-images/icons/icon-128x128.png",
"sizes": "128x128",
"type": "image/png"
},
{
"src": "app-images/icons/icon-144x144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "app-images/icons/icon-152x152.png",
"sizes": "152x152",
"type": "image/png"
},
{
"src": "app-images/icons/icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "app-images/icons/icon-384x384.png",
"sizes": "384x384",
"type": "image/png"
},
{
"src": "app-images/icons/icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"splash_pages": null
}
如果有人能指出我做错了什么的正确方向吗?先谢谢各位了
【问题讨论】:
标签: php json web-applications progressive-web-apps