Skip to content

Commit

Permalink
Add metadata parameter to example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
rosvik committed Oct 28, 2020
1 parent 1c9d956 commit cabcf80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ notifier.notify(
sound: true, // Only Notification Center or Windows Toasters
wait: true // Wait with callback, until user action is taken against notification, does not apply to Windows Toasters as they always wait or notify-send as it does not support the wait option
},
function (err, response) {
function (err, response, metadata) {
// Response is response from notification
// Metadata contains activationType, activationAt, deliveredAt
}
);

Expand Down

0 comments on commit cabcf80

Please sign in to comment.