Web Notifications Demo

This demo uses the Web Notification API with a service worker to send periodic background notifications.

Configuration

The service worker is configured to send notifications every 10 seconds, up to 10 notifications total. These values can be adjusted in the service worker file.

How it works

  1. Click "Request Notification Permission" to grant notification access
  2. Once granted, click "Start Periodic Notifications"
  3. The service worker will send notifications in the background
  4. Notifications will continue even if you close this tab (but keep the browser open)