1

Im trying to use the web notification API (https://developer.mozilla.org/en-US/docs/Web/API/Notification) to show browser notification, something like the example of this link (in marked answer) Chrome desktop notification example

However, Im looking for something that will automatically show certain such notification on daily basis, on a particular time. Like i see such notification for facebook in chrome browser. Is that possible? how can i achieve that? I know there might some browser limitation, however i'll be happy if i can do that for chrome and firefox.

Community
  • 1
  • 1
Syed Ekram Uddin
  • 2,907
  • 2
  • 29
  • 33
  • If you don't want to build everything from scratch you can use web services like https://pushpad.xyz Beside the Push API it also supports Safari – collimarco May 31 '16 at 09:51

1 Answers1

1

You would need to use the Push API, service workers, and some corresponding server infrastructure. That way, if users opt-in, you can wake up your service worker at a particular time and deliver a message to the user.

Anne
  • 7,070
  • 1
  • 26
  • 27