问题描述
我有一个有时会使用子域的 PWA.当应用程序重定向到另一个子域时,我发现的问题发生了:显示地址栏.这会影响类似应用的体验.
I have a PWA that uses subdomains sometimes. The problem that I found happens when app redirects to another subdomain: Address bar shows up. This affects app-like experience.
有人知道在使用子域时隐藏地址栏的解决方案吗?
Someone knows a solution to hide address bar when using subdomains?
推荐答案
我在重定向到子域时也遇到了类似的问题.当 PWA 没有正确设置为像应用程序一样运行时,地址栏通常会显示.就我而言,重定向后 manifest.json
未正确加载.
I also faced a similar issue when redirecting to subdomains. The address bar normally shows up when the PWA is not correctly set-up to behave like an app. In my case, the manifest.json
was not loading properly after redirecting.
此链接可能也很有用 - Chrome PWA
This link may also prove useful - Chrome PWA
这篇关于PWA:重定向到子域时显示地址栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!