meteor-desktop-system-notifications

0.0.2 • Public • Published

meteor-desktop-system-notifications

A plugin for meteor-desktop that enabled native system notifications/toasts and icon badges

On the Meteor side you can do the following:

  • To set a badge on the app's icon
Desktop.send('systemNotifications', 'setBadge', unreadCount);
  • To show a system notification
Desktop.send('systemNotifications', 'notify', {
    title: 'Title',
    text: 'Text',
    icon: 'Icon Url',
    data: {
        someVar: 'someValue',
    },
});
  • To handle click on a notification
Desktop.on('systemNotifications', 'notificationClicked', (sender, data) => {
    //handle click
    //data is the data object you passed to notify
});

Lots more to do

Package Sidebar

Install

npm i meteor-desktop-system-notifications

Weekly Downloads

5

Version

0.0.2

License

MIT

Last publish

Collaborators

  • alextz