问题描述
我正在制作 PWA,但遇到了一些问题。当应用程序处于开发模式时,我没有收到 PWA 的错误,但是当我将其推送生产时,我得到:
Web 应用清单或 Service Worker 不符合可安装性要求
Manifest 不包含合适的图标 - PNG、SVG 或 WebP 格式至少需要 144 像素,必须设置大小属性,并且目的属性(如果设置)必须包含“任何”或“可屏蔽”。
我不明白为什么,因为这是我的 manifest.json
{
"short_name": "Ionic App","name": "My Ionic App","icons": [
{
"src": "assets/icon/favicon.png","sizes": "64x64 32x32 24x24 16x16","type": "image/x-icon","purpose": "any"
},{
"src": "assets/icon/icon.png","type": "image/png","sizes": "512x512","purpose": "maskable"
}
],"start_url": ".","display": "standalone","theme_color": "#ffffff","background_color": "#ffffff"
}
任何帮助将不胜感激