我的PWA应用程序在移动设备上运行得很好。
一个真正的问题是,它安装在台式机Chrome上后,会立即打开应用程序窗口,但使用当前的浏览器选项卡,而忽略清单的start_url属性中设置的任何内容。
我的 manifest.json :
{
"dir": "ltr",
"lang": "en",
"name": "Assessments",
"display": "standalone",
"start_url": "index.html", /* this is relative url */
"short_name": "Placeholdrer for question",
"theme_color": "#8B418C",
"description": "Quick and easy way to do your assessment. Regardless of network connectivity.",
"orientation": "portrait",
"background_color": "transparent",
"offline_enabled": true,
"scope": "../",
"icons": [
{
"src": "images/PWA/icons/icon-72x72.png",
"sizes": "72x72",
"type": "image/png"
},
/*here are other icons... */
]
}
实际结果:
预期结果:
它应该在安装后打开正确的应用程序屏幕,或者仅安装该应用程序。