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
Click "Request Notification Permission" to grant notification access
Once granted, click "Start Periodic Notifications"
The service worker will send notifications in the background
Notifications will continue even if you close this tab (but keep the browser open)