Skip to content

"Add to home screen" dismissal is not remembered #1619

@miketheman

Description

@miketheman

When visiting the schedule on a desktop browser, the "Add to home screen" banner is shown at the bottom fo the screen.
Clicking the "X" to dismiss removes it from view, but does not persist, so every time I reload the page, it reappears.

The desired behavior should be that if I dismiss it, then it stays dismissed.
This is likely accomplished with locaStorage or some other method.

More broadly, I expected to see a more standards-sligned approach for adding to home screen style - per the MDN PWA guide - leveraging a browser's behaviors and providing the user the experiences they are used to.

That might be a larger refactor, but there's also pre-built libraries that provide a lot of that machinery like https://vite-pwa-org.netlify.app/frameworks/astro (source code) that could feasibly replace the lower-level astrojs-service-worker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions