Unlike in the demo site, the option to install the PWA is not appearing on the page. Does this require any special configurations, either on Vikunja or the reverse-proxy?
My vikunja instance is used as a subdomain (ie. vikunja.domain.net), using the latest official docker images.
Vikunja is behind a domain level proxy from Authentik. It is weird that it is stopping the download, as the PWA from Tandoor works as expected and is behind authentik as well.
I use SWAG-docker as my reverse proxy and as far as I know, I haven’t set up any CORS (but i’ll check, maybe something escaped me)
Edit: I also use authentik as a OIDC provider for Vikunja, if that helps
That looks like it has the correct cookie. It seems like this is a problem with your Authentik or SWAG setup. Is there anything in Authentik’s logs? I don’t know anything about Authentik (or SWAG), you may want to ask on their forum or Discord about this.
Maybe the proxy does the authentication by a list of known file endings and .webmanifest isn’t one of them?
Authentik logs don’t seem to be showing anything out of the ordinary (though i’m not accustomed to parsing them). The weird thing is that it doesn’t have an issue with the Tandoor PWA.
Thanks for helping me diagnose this! I’ll try asking around the Authentik discord for the next steps.
Were you eventually able to add Vikunja as PWA?
UPD: ah nevermind, seems like Vikunja’s manifest is bad when it comes to sub-directory deployment - had to un-check the “Use app’s Manifest” checkbox in Firefox PWA extension.
Timely because I just tried to do this today, and haven’t gotten it working yet. To clarify, you’ve got vikunja deployed at a subdirectory path of your domain? Mine’s on a subdomain and having a similar issue.
Sub-directory, right. The subdomain should not cause any problems at all. If you don’t see the Install option - try to directly install through a plugin called “Progressive Web Apps for Firefox”.
Thanks for confirmation. I was using Safari on my phone, which has its limits. I’ll try on a computer later, when I have time to throw at this, and that should let me pull browser console logs etc.,
If you’re installing Vikunja in a subdir, the pwa won’t work. The pwa requires a service worker and there can be only one per domain, and it must be installed on the root directory. That’s a browser limitation, nothing we can change.
Sorry, yes, I know the workflow, but it’s adding as a bookmark rather than the PWA, and opens in a new tab in the Safari app every time I launch from there. I am expecting I just need to look at it from a browser that actually has debugging tools, see if the behavior is consistent, and investigate from there.
That’s weird, both base domain & sub-directory deployments work fine for me.
If you run the dev version by any chance - some logic in regards to base path handling is different in dev mode, I would suggest PROD.
That’s even though dev deployment worked well for me in the sub-dir.