Web 应用程序清单不符合可安装性要求
Web app manifest does not meet the installability requirements
我尝试制作一个渐进式网络应用程序,但 Lighthouse 说,我没有足够的图标,这是 Lighthouse 的问题:
Web app manifest does not meet the installability requirementsFailures: Manifest does not have a PNG icon of at least 144px.
Is not configured for a custom splash screenFailures: Manifest does not have a PNG icon of at least 512px.
快速可靠的“选项卡”中有两个错误,但我认为这应该无关紧要?
这是我的 Manifest.json:
{
"name": "PWA Test Tutorial",
"short_name": "PWA",
"start_url": ".",
"background_color": "green",
"theme_color": "red",
"display": "standalone",
"prefer_related_applications": "false",
"icons": [
{
"src": "testLOGO.png",
"sizes": "512x512",
"type": "images/png"
},
{
"src": "192.png",
"sizes": "192x192",
"type": "images/png"
},
{
"src": "512.png",
"sizes": "512x512",
"type": "images/png",
"purpose": "maskable"
}
]
}
我的问题在哪里?
您需要更多信息吗?
感谢您的关注
您的图标的 type
应该是 image/png
(没有“s”)
我尝试制作一个渐进式网络应用程序,但 Lighthouse 说,我没有足够的图标,这是 Lighthouse 的问题:
Web app manifest does not meet the installability requirementsFailures: Manifest does not have a PNG icon of at least 144px.
Is not configured for a custom splash screenFailures: Manifest does not have a PNG icon of at least 512px.
快速可靠的“选项卡”中有两个错误,但我认为这应该无关紧要?
这是我的 Manifest.json:
{
"name": "PWA Test Tutorial",
"short_name": "PWA",
"start_url": ".",
"background_color": "green",
"theme_color": "red",
"display": "standalone",
"prefer_related_applications": "false",
"icons": [
{
"src": "testLOGO.png",
"sizes": "512x512",
"type": "images/png"
},
{
"src": "192.png",
"sizes": "192x192",
"type": "images/png"
},
{
"src": "512.png",
"sizes": "512x512",
"type": "images/png",
"purpose": "maskable"
}
]
}
我的问题在哪里? 您需要更多信息吗? 感谢您的关注
您的图标的 type
应该是 image/png
(没有“s”)