Created
October 22, 2020 15:23
-
-
Save andrewarosario/3f880d072c879645e56d0372ca2517d2 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: 'Título da notificação', | |
body: 'Corpo da notificação', | |
requireInteraction: true, | |
tag: 'message-1', | |
renotify: true, | |
timestamp: Date.parse('01 Jan 2021 00:00:00') | |
}; | |
webpush.sendNotification(pushSubscription, payload); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment