Manifest 没有 `short_name`,Manifest 没有 `name`
Manifest does not have `short_name`, Manifest does not have `name`
运行 Google Chrome 审核时出现以下错误:
Web app manifest does not meet the installability requirementsFailures: Manifest does not have `short_name`, Manifest does not have `name`.
photo of error message
以及
Is not configured for a custom splash screenFailures: Manifest does not have a PNG icon of at least 512px, Manifest does not have `name`.
photo of second error message
我在根目录中有一个 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
}
如果有人能指出我做错了什么的正确方向?提前谢谢大家
已解决!
来自我使用的网站图标生成器的 site.webmanifest 阻止了我的自定义 manifest.json 文件。
运行 Google Chrome 审核时出现以下错误:
Web app manifest does not meet the installability requirementsFailures: Manifest does not have `short_name`, Manifest does not have `name`.
photo of error message
以及
Is not configured for a custom splash screenFailures: Manifest does not have a PNG icon of at least 512px, Manifest does not have `name`.
photo of second error message
我在根目录中有一个 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
}
如果有人能指出我做错了什么的正确方向?提前谢谢大家
已解决!
来自我使用的网站图标生成器的 site.webmanifest 阻止了我的自定义 manifest.json 文件。