问题
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