我已将 PWA 添加到我现有的 Angular 应用程序中,之后浏览器允许使用提到的应用程序图标、名称、描述等将我的应用程序添加到主屏幕。问题是在将应用程序添加到主屏幕时,它允许用户更改应用程序我想限制的名称,因为 Myntra 和其他产品正在做。我附上了我的应用程序和 Myntra 的屏幕截图。提前致谢。
清单.json -
{"name": "PwaDemo",
"short_name": "PwaDemo",
"theme_color": "#1976d2",
"background_color": "#fafafa",
"display": "standalone",
"scope": "/",
"start_url": "/",
"icons": [
{
"src": "assets/icons/icon-72x72.png",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "assets/icons/icon-96x96.png",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "assets/icons/icon-128x128.png",
"sizes": "128x128",
"type": "image/png"
},
{
"src": "assets/icons/icon-144x144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "assets/icons/icon-152x152.png",
"sizes": "152x152",
"type": "image/png"
},
{
"src": "assets/icons/icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "assets/icons/icon-384x384.png",
"sizes": "384x384",
"type": "image/png"
},
{
"src": "assets/icons/icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}