Metadecidim
Sign in

Process

Co-creating the roadmap 2025–2027

finished not yet on protocol

Custom offline fallback page

Ref. PWA10

NOTE: this feature is from a big development. See PWA discussion at GitHub.

Is your feature request related to a problem? Please describe.

As a visitor, when I don’t have connectivity and enter a Decidim page what I get is the “No internet connection” screen (aka Downasaur).

Describe the solution you’d like
I would want to see a personalized error message. For doing this exists the ServiceWorker API. It could also serve us as a building block for having other kinds of features with better offline support, such as being able to…

  • … read my messages
  • … send new messages when I get connectivity again
  • … download some parts of the platform (like all the contents of a given space)

Describe alternatives you’ve considered
To use something like Cordova or Ionic, but would be much more expensive to implement given our current architecture.

Additional context


Lighthouse relevant section

Does this issue could impact on users private data?
Could be, as this could potentially enable us to download some private data to the participant's mobile phone or browser, and an evil actor with local access to her device could read that data. At the moment we will only show a friendlier nonconnected page.

Acceptance criteria

  • Given that I’m a visitor that has already visited once Decidim and I’m not online,
    When I go again
    Then I see a custom error message.


1 comment

  1. Can not upvote this more. I think it is an essential step to have a strong PWA for decidim.

    Timestamping, privacy concerns, and so on are a nightmare when going offline.

    Thanks @andres for pointing me to this proposal, I would suggest to add a link to meta decidim in the proposals description to see all the proposals related to PWA. I use this link that I found it useful (Searching "Ref. PWA" in proposals): https://meta.decidim.org/search?filter%5Bresource_type%5D=Decidim%3A%3AProposals%3A%3AProposal&filter%5Bterm%5D=Ref.+PWA

    0 votes up 0 votes down

Sign in with your Atmosphere account to comment.