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

When self-hosted, manifest is missing when installing PWA on iOS #1006

Open
Hodapp87 opened this issue Jan 24, 2025 · 0 comments
Open

When self-hosted, manifest is missing when installing PWA on iOS #1006

Hodapp87 opened this issue Jan 24, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Hodapp87
Copy link

Hodapp87 commented Jan 24, 2025

Describe the bug

When on iOS, PWA doesn't work properly on self-hosted Organice - that is, built and served from my own nginx, or bin/entrypoint.sh. (Not tested on Android yet.)

This problem goes away if:

In digging a little: index.html contains /manifest.json here as the manifest the PWA needs - but this manifest.json isn't present anywhere in the repository or build.

However, the script in index.html then rewrites this manifest's href to that of a JSON blob created in the script. If I use a desktop browser, the manifest then seems to be visible, e.g. if I go to Developer Tools, Application, & Manifest, the proper JSON is visible.

Does iOS refuse to run the script when installing as a PWA, or something like that? I suspect someone was aware of this, which is why https://organice.200ok.ch/manifest.json exists.

To Reproduce

Steps to reproduce the behavior:

  1. Set up Organice to be self-hosted, e.g. with nginx.
  2. Follow the iOS instructions at https://organice.200ok.ch/documentation.html#installation - using the URL of the self-hosted Organice, not https://organice.200ok.ch.
  3. Press the icon just created on the home screen.

Organice will just open as a tab in the default browser - not as a PWA. iOS appears to be treating it just as a bookmark.

Expected behavior
It's expected that Organice opens as a PWA - not just a Safari tab/bookmark.

Screenshots
N/A

Desktop (please complete the following information):
N/A

Smartphone (please complete the following information):

  • Device: iPhone 11
  • OS: iOS 18.1.1
  • Browser: Safari
@Hodapp87 Hodapp87 added the bug Something isn't working label Jan 24, 2025
@Hodapp87 Hodapp87 changed the title Missing manifest.json for self-hosted Organice Missing manifest in self-hosted Organice when installing PWA on iOS Jan 24, 2025
@Hodapp87 Hodapp87 changed the title Missing manifest in self-hosted Organice when installing PWA on iOS When self-hosted, manifest is missing when installing PWA on iOS Jan 24, 2025
@Hodapp87 Hodapp87 reopened this Jan 24, 2025
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

1 participant