Created
October 22, 2020 15:18
-
-
Save andrewarosario/856519c8725dd370977844fb13aa7bd5 to your computer and use it in GitHub Desktop.
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
const payload = { | |
title: 'Nova Notificação', | |
body: 'Mensagem da Notificação', | |
icon: 'src/assets/img/cat-icon.png', | |
badge: 'src/assets/img/cat-badge.png', | |
image: 'src/assets/img/wallpaper.jpg', | |
sound: 'src/sound/notification.mp3' | |
}; | |
webpush.sendNotification(pushSubscription, payload); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment