Skip to content

feature(service-worker): Store received notifications #52349

Closed as not planned
Closed as not planned

Description

@angelaki

Which @angular/* package(s) are relevant/related to the feature request?

service-worker

Description

If I'm not mistaken the current service worker only displays / reacts on incoming notifications. There is no chance to list them afterwards.

Since many users accidentally click them away / want to check them later, I'd like to be able to access old received notifcations.

Proposed solution

Received messages could be stored to localStorage. The key and the maximum latest message store count could be set, so with a default value of zero the current SW even wouldn't behave any different.

Alternatives considered

Activity

  1. added this to the needsTriage milestone on Oct 24, 2023
  2. goetzrobin commented on Oct 27, 2023

    @goetzrobin

    @angelaki you could implement this yourself using the scan operator from RxJs.

    Out of curiosity, are you using notifications with iOS17 by any chance? I am not getting any output from the messages Observable and am wondering if that is a common issue with SwPush and iOS

  3. angelaki commented on Nov 1, 2023

    @angelaki
    ContributorAuthor

    Can you please pass me an example? I don't know what exactly you mean.

    And yes, using it with IOS17 - just works for me, didn't need to do any changes.

  4. JeanMeche commented on Aug 29, 2025

    @JeanMeche
    Member

    With #63364 we've announced that the service-worker package in now in maintenance mode and will not receive feature PRs and feature requests.

    The message is also visible here: https://angular.dev/ecosystem/service-workers

  5. angular-automatic-lock-bot commented on Sep 29, 2025

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  6. locked and limited conversation to collaborators on Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: service-workerIssues related to the @angular/service-worker package

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions