显示:“独立". PWA不会删除地址栏 [英] The display: "standalone" PWA does not remove address bar
问题描述
我制作了一个PWA应用,清单中有"display": "standalone"
.我的理解是,我的应用应在没有地址栏的情况下在本地启动.但是,有一个地址栏.
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.
我做错了什么?我正在运行Chrome70.问题发生在OSX和Linux上.我没有检查Windows.我的应用托管在 https://www.themendapp.com .
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.
请告知.
推荐答案
当您尝试导航scope
之外的页面时,PWA应用程序将显示地址栏.否则,它将隐藏地址栏并以独立模式显示页面.
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.
例如,如果您在manifest.json文件中将范围设置为scope: "/my-pwa/"
,则所有页面url都应具有这样的前缀:/my-pwa/page.html
.
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
.
这篇关于显示:“独立". PWA不会删除地址栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!