为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

PWA: "Add to Home screen" (Install) does not install the web app

  • 6 个回答
  • 1 人有此问题
  • 20 次查看
  • 最后回复者为 Paul

more options

Hi.

I made a PWA that should be started from Android's Home screen (as if it was a native app). You can find it here: https://www.darkdiagnosis.com/.

So, when you open it in Firefox mobile (v68.11.0) I see a "|+|" in the URL bar. This is the "Add to Home screen" functionality that I need to be able to install it as a "native" web app right?

But when I click on this it does put it on the home screen as a "native" app (not just as a "shortcut"), but it doesn't "install" it fully. The difference is the following:

- the installation process with progress bar and security scan does not happen - the app does not appear in the list of Applications with its permissions - when dragged to trash it just disappears, it doesn't ask for confirmation and does the uninstall process - when I open the app it does not have sufficient "security/trusted level" (like the sound is not allowed to be played before the user gesture and so on...)

All those 4 bullets do happen in Chrome when the app is installed. (With Chrome I also had some issues for the entire day yesterday, that the app was not installed, but just added to the Home screen without installation, same as what I experience now with Firefox. But today it works fine the entire day. I guess it was related to cached site settings and stuff, from previous version of the app.)

Is this a known issue (uninplemented thing), or can I fix it somehow?


NOTE1: I have cleared all my privacy data in Firefox

NOTE2: It does get added to the Home screen almost like the installation (it uses manifest and opens in full screen and landscape orientation), not just as added as a shortcut (where it would just open the browser regularly and head to the shortcuted link).

Hi. I made a PWA that should be started from Android's Home screen (as if it was a native app). You can find it here: https://www.darkdiagnosis.com/. So, when you open it in Firefox mobile (v68.11.0) I see a "|+|" in the URL bar. This is the "Add to Home screen" functionality that I need to be able to install it as a "native" web app right? But when I click on this it does put it on the home screen as a "native" app (not just as a "shortcut"), but it doesn't "install" it fully. The difference is the following: - the installation process with progress bar and security scan does not happen - the app does not appear in the list of Applications with its permissions - when dragged to trash it just disappears, it doesn't ask for confirmation and does the uninstall process - when I open the app it does not have sufficient "security/trusted level" (like the sound is not allowed to be played before the user gesture and so on...) All those 4 bullets do happen in Chrome when the app is installed. (With Chrome I also had some issues for the entire day yesterday, that the app was not installed, but just added to the Home screen without installation, same as what I experience now with Firefox. But today it works fine the entire day. I guess it was related to cached site settings and stuff, from previous version of the app.) Is this a known issue (uninplemented thing), or can I fix it somehow? ---------------- NOTE1: I have cleared all my privacy data in Firefox NOTE2: It does get added to the Home screen almost like the installation (it uses manifest and opens in full screen and landscape orientation), not just as added as a shortcut (where it would just open the browser regularly and head to the shortcuted link).

由vrafaeli于修改

所有回复 (6)

more options

I think the issue is that my phone has Android 7, and Firefox supports web app installation from Android 8 only.

(Chrome on the other hand supports this installation for Android 7)

more options

HI

I have tried to open the site in the latest version of Firefox for Android and just see a black screen. Are you sure that the site has been made mobile responsive?

more options

Hi Seburo. This is OK. The app is currently down for unrelated reason (service worker I think is crashing it). You can do a force reload which would manage to open the app correctly. I see long hold on the refresh button does this in Firefox for Android. (I did this on Chrome by remote debugger connection and using shift F5 in the desktop inspector).

Now (99% the issue is because Android I have is v7, and Firefox docs say it has to be v8+). So if you have time, and you have Android v8+ you can do a force reload of this app, and try install, and see if the real installation happens (app shows in the list of installed native apps).

由vrafaeli于修改

more options

I tried reloading and it is not displaying. I think you may need to do some more work on it, but I think from what you are saying, you already are.

All the very best with this work, I hope it is a success.

more options

The app has 3 "modes".

A) The desktop mode. Does it work when you open it with a force reload on desktop? B) The browser tab mode. You can do a force reload of the browser tab by long hold on the Firefox for Android refresh button. C) The full screen mode. This is opened after you add app to the Home screen.

If you do a force reload in the A and B you should see the app working.

more options

I am not seeing that - I cannot open the game on mobile.

This is not an issue with Firefox for Android, but I recommend that you try what you have built in Firefox for Android Beta.