The display: “standalone” PWA does not remove address bar

|▌冷眼眸甩不掉的悲伤 提交于 2020-06-17 02:39:05

问题


I made a PWA app, with "display": "standalone" in the manifest. My understanding is that my app should launch locally without the address bar. However, there is an address bar.

What am I doing wrong? I am running Chrome 70. The problem happens on OSX and Linux. I did not check Windows. My app is hosted at https://www.themendapp.com.

Please advise.


回答1:


PWA app shows the address bar when you try to navigate the pages outside of scope. Otherwise it will hide the address bar and show the page in standalone mode.

For example if you have set your scope in manifest.json file as scope: "/my-pwa/" then all the page url should have prefix like this: /my-pwa/page.html.



来源:https://stackoverflow.com/questions/54306813/the-display-standalone-pwa-does-not-remove-address-bar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!