Skip to content

Persistent notifications while browsing the website/domain #11

@younes0

Description

@younes0

Example: I load the page, and get a notification on "/page1" but I barely see it since I get on page "/page2" shortly after.
Usecase: on my website, I have pushed (comet) events that the user should not miss...

Workflow:

  1. On "/page1": A notify instance is created: it stores a object consisting of its properties and its creation timestamp.
  2. On "/page2": when document is ready, a method retrieves all stored objects and init them.
    Before beeing reinitialised, the fadeOut.delay is adjusted :
    fadeOut.delay - (now_timestamp - creation_timestamp)
  3. When the notification is shown, localStorage is purged.

This would result in a new plugin option (boolean) "persistence" and a new public method $.notify.resume();

I'm thinking of adding this feature as an addon plugin or not, any comments ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions