為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

There is a conflict between support for classical shortcuts on Android Home screen and PWA support

  • 1 回覆
  • 1 有這個問題
  • 29 次檢視
  • 最近回覆由 Paul

more options

From the very beginning, Android Firefox allows us to create home screen shortcuts with the URL of the current tab. Since then, I've been using this to pin important pages to the home screen. However, the implemented support for Progressive Web Apps (PWA) has critically impacted the ability to pin web pages to the home screen as Firefox shortcuts. The thing is, when Firefox detects a manifest.json file on a website, the “Add to Home screen” menu item is replaced by “Install” item, and Firefox creates a shortcut for the PWA, not for the current URL opened in the tab. PWA shortcuts refer to a URL defined in the manifest as the start_url value. This way, the creators of manifest.json have complete control over which page will open when the PWA starts up. The most web sites that want us to install the PWA, such as: https://www.theglobeandmail.com/ , https://www.cbc.ca/ , and https://www.spiegel.de/ and many others, use the main page of their site as the start_url value. S0 if I open a page, for example, “About CBC News” with the URL https://www.cbc.ca/news/about-cbc-news-1.1294364, and create a Home Screen shortcut, this shortcut will navigate to the URL https://www.cbc.ca/?utm_source=web_app_manifest and open the CBC home page in PWA window instead of the “About CBC News” page. The same will be true for any of the three sites listed above: The Globe and Mail, CBC, and Spiegel. The shortcut will open the home pages of these sites as a PWA window. I don't see the point in such a PWA, because if we need to open the main page of news sites, we can use the Firefox bookmarks, collections or pinned sites. So, I highly suggest the following. When a site contains a manifest.json file, let users decide whether they want a classic Firefox shortcut or a PWA shortcut. I believe the simplest implementation would be to use two separate menu items: “Add to Home screen” for regular shortcuts and “Install” for PWAs. Then the user could make a choice.

From the very beginning, Android Firefox allows us to create home screen shortcuts with the URL of the current tab. Since then, I've been using this to pin important pages to the home screen. However, the implemented support for Progressive Web Apps (PWA) has critically impacted the ability to pin web pages to the home screen as Firefox shortcuts. The thing is, when Firefox detects a manifest.json file on a website, the “Add to Home screen” menu item is replaced by “Install” item, and Firefox creates a shortcut for the PWA, not for the current URL opened in the tab. PWA shortcuts refer to a URL defined in the manifest as the start_url value. This way, the creators of manifest.json have complete control over which page will open when the PWA starts up. The most web sites that want us to install the PWA, such as: https://www.theglobeandmail.com/ , https://www.cbc.ca/ , and https://www.spiegel.de/ and many others, use the main page of their site as the start_url value. S0 if I open a page, for example, “About CBC News” with the URL https://www.cbc.ca/news/about-cbc-news-1.1294364, and create a Home Screen shortcut, this shortcut will navigate to the URL https://www.cbc.ca/?utm_source=web_app_manifest and open the CBC home page in PWA window instead of the “About CBC News” page. The same will be true for any of the three sites listed above: The Globe and Mail, CBC, and Spiegel. The shortcut will open the home pages of these sites as a PWA window. I don't see the point in such a PWA, because if we need to open the main page of news sites, we can use the Firefox bookmarks, collections or pinned sites. So, I highly suggest the following. When a site contains a manifest.json file, let users decide whether they want a classic Firefox shortcut or a PWA shortcut. I believe the simplest implementation would be to use two separate menu items: “Add to Home screen” for regular shortcuts and “Install” for PWAs. Then the user could make a choice.

所有回覆 (1)

more options

Hi,

If you want to leave feedback for Firefox developers, you can go to this link. Your feedback gets collected by a team of people who read it and gather data about the most common issues.

You can also file a bug report or feature request. See File a bug report or feature request for Mozilla products for details.