Web Push Demo

Push notification are supported by this browser:

User consent to push notification:

step 1 : Ask user consent to show notifications

step 2 : Susbcribe to push notification

this will create an endpoint that has to be sent to the push server

step 3 : Send the notification to the push server

step 4 : Ask the push server for a notification

in production you don't ask for notifications, The push server decide itself when to send them

Web Push Custom Data: