Check if browser supports following features: serviceworker, Notification
Register the service worker (sw.js)
Ask for notification permissions
(USER: if you already denied/granted the permissions you can reset or change permissions in the browser
settings and click "Enable notifications" to be asked again)
USER: Click to "show local notification" in order to make a notification appear. You can choose between these
actions:
Close notification
Click on notification content
Click on notification actions (OK or CANCEL)
USER: Change tab or application and check if a "come back" notification appears.
If you click on the notification content you'll be redirected to the website again
USER: Test Push Notification (simulate a push event from the server)