Skip to content
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

Lemmy is not installable as PWA anymore #822

Closed
EchedelleLR opened this issue Oct 11, 2022 · 6 comments
Closed

Lemmy is not installable as PWA anymore #822

EchedelleLR opened this issue Oct 11, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@EchedelleLR
Copy link

Issue Summary

Lemmy is not "installable" as PWA anymore.

Steps to Reproduce

  1. Open https://lemmy.ml or any other LemmyUI of any instance in Firefox for Android.
  2. Check for the install option.
  3. See that only "Add to Home screen" is available, as if it was detected as common website.
  4. Press it and see that it is indeed opened as a web browser tab.

Technical details

  • OS: Android 10.
  • Web Browser: Firefox for Android 105.1.0
@EchedelleLR EchedelleLR added the bug Something isn't working label Oct 11, 2022
@zcdunn
Copy link
Contributor

zcdunn commented Dec 22, 2022

I came to file the same issue. I checked devtools on desktop and found that the web app manifest isn't being loaded.

Content Security Policy: The page’s settings blocked the loading of a resource at https://lemmy.ml/static/assets/manifest.webmanifest (“default-src”).

There also doesn't seem to be a service worker installed, though I can't find any errors related to it. I don't see any request for a service worker in the network logs

@dessalines
Copy link
Member

The CSP is most likely the only problem, because nothing else has changed. I'll try to get this in before the next update.

@m-boyd
Copy link

m-boyd commented Jan 29, 2023

I'm still experiencing this issue on Android 13, even after the recent commit. Same steps to reproduce.

@dessalines
Copy link
Member

I'm not too great at CSP, could you check to see what the issue is? I've allowed all manifest-src files so I'm not sure what else it could be.

@zcdunn
Copy link
Contributor

zcdunn commented Jan 30, 2023

I get

Content Security Policy: The page’s settings blocked the loading of a resource at https://lemmy.ml/static/assets/manifest.webmanifest (“default-src”).

on Firefox 109.0. FIrefox doesn't show response headers for that request since it blocked it, but on other requests I can see the CSP header and manifest-src isn't present

content-security-policy: default-src 'none'; connect-src *; img-src * data:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; form-action 'self'; base-uri 'self'

@dessalines
Copy link
Member

That fix hasn't been deployed yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants