Notifications Playground


Steps

  1. Check if browser supports following features: serviceworker, Notification
  2. Register the service worker (sw.js)
  3. Ask for notification permissions
  4. USER: Click to "show local notification" in order to make a notification appear. You can choose between these actions:
  5. USER: Change tab or application and check if a "come back" notification appears.
  6. USER: Test Push Notification (simulate a push event from the server)

Messages