我添加了不同大小的图标(144x144和194x194)并创建了pwa-manifest.json -
{
"short_name": "app",
"name": "Application",
"icons": [
{
"src": "assets/images/favicons/favicon-194x194.png",
"sizes": "194x194 512x512",
"type": "image/png"
},
{
"src": "assets/images/favicons/apple-touch-icon-144x144.png",
"sizes": "144x144",
"type": "image/png"
}
],
"start_url": "/index.html",
"background_color": "#fbfcfd",
"theme_color": "#00aeef",
"display": "standalone"
}
我还将此清单文件添加到index.html和angular-cli.json。
当我尝试在Android 7.0中添加应用程序时(使用Chrome 61.0.3163.98),它没有显示图标。我使用了不同的Android设备,只有摩托罗拉Nexus能够提供所需的结果。