This demo shows how to control the clients of a service worker when the user clicks on a push notification.
Press on 'Send notification' and try one of:
- - Switching to another page: clicking on the notification will re-focus this page;
- - Closing this page: clicking on the notification will reopen it;
- - Remaining on this page: a different notification will be shown, nothing will happen if you click on it.