Service Workers - Push Notification
Open your console and make sure to refresh the page once to get demo working.
Step 1: Click Request for Notification button to register for notifications.
Step 2: Click on Register for push to register for push notifications.
Step 3: Copy and paste the following in the terminal by replacing (DEVICE_REGISTRATION_ID) with the one that appears in the console
curl --header "Authorization: key=AIzaSyB_0mMNuc9YxPB8Z9BYtHHCvyCML7d2ZPk" --header "Content-Type: application/json" -d "{\"registration_ids\":[\"(DEVICE_REGISTRATION_ID)\"]}"