-
-
Save illucent/8f7ca496283d4f0f14fb72774b3fa075 to your computer and use it in GitHub Desktop.
Notification Badge Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.addEventListener('push', function(event) { | |
event.waitUntil( | |
self.registration.showNotification( | |
'Hello', { | |
body: 'Thanks for sending this push msg.', | |
icon: './images/icon-192x192.png', | |
badge: './images/icon-72x72.png' | |
}) | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment