New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PWA not available #852
Comments
Ah, okay. I think it's technically not a PWA without a service worker, so I was confused by the use of that term. But I did find the "Add to Home screen" button on mobile and that works for me. Thanks for the clarification! |
Not that I am aware of. We can add a worker later, if that helps. |
@benmccann Just added a service worker for you 💐 |
You're welcome! |
I don't have the install prompt. Also in the Chrome menu I still see "Add to Home Screen" as opposed to "Install App". I have forced stopped Chrome, emptied cache and reloaded the Photoprism page but did not help. PhotoPrism® 210111-cc05c430-Linux-x86_64 |
Are you loading photoprism via https using a valid certificate? |
Yes. Nginx reverse proxy using let's encrypt certificate. (Talking to Photoprism through http.) |
@Sherlock1979 Still having issues? Maybe clearing the cache helps: On Desktop, the manifest is not automatically updated, but this is planned for a future update. |
I came across this issue while trying to figure out why I couldn't install the PWA. For me, putting the server behind Caddy and setting up HTTPS was enough to make the "Install" button to appear in Firefox and Chrome's menus. The information at https://docs.photoprism.app/user-guide/pwa#__tabbed_1_2 is slightly wrong - it says "Click Add to Home screen" to install the PWA. This actually just adds a bookmark, which opens in a full browser when tapped. When the criteria for PWA are met, there will be a separate button called "Install" underneath "Add to Home screen" which installs the PWA. |
Yes, HTTPS is usually required unless you run it on the same host (if you install the PWA on a desktop computer). On Android, the results of "Install" and "Add to homescreen" are essentially the same.... I can't see any difference in functionality, only the icons are different and I think with "install" you can't edit the app name. |
@graciousgrey will update our docs accordingly 👍 |
In Firefox for Android, the results are quite different - Install installs a thing that has no browser chrome, whereas "Add to homescreen" adds a bookmark that opens in a regular browser tab with full browser chrome. I'd describe the former as a PWA and the latter as a bookmark. Chrome |
I would assume that PWAs are always opened with Chrome while bookmarks will be opened in the browser that added them. Thus the difference if you don't use Chrome as your main browser. On iOS, even Chrome uses the Safari engine. Apple enforces this, they have no choice. |
This doesn't seem to be the case on my phone (Mi 9T with MIUI12) - opening the PWA originally installed from Firefox, then opening its "App info" page from the switcher, opens the app info page for Firefox. |
Docs have been updated: https://docs.photoprism.app/user-guide/pwa/#__tabbed_1_2 :) |
I've seen numerous references that PhotoPrism is a PWA. However, I cannot install it when I visit https://demo.photoprism.org. There does not appear to be a service worker available and I think that's why. I'm not sure if this is a feature that hasn't been developed and launched yet or the service worker broke somehow
The text was updated successfully, but these errors were encountered: