Skip to content

A helper Electron & Node.js module to post notifications immediately via macOS distributed notification center

License

Notifications You must be signed in to change notification settings

turbobabr/post-notification-immediately

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

post-notification-immediately

A helper workaround module for Electron issue (#15789) to post notifications immediately via macOS distributed notification center. This module also can be used in any node.js application running on macOS.

Installation

$ npm install post-notification-immediately

Requires macOS 10.12 or later.

Usage

const postNotification = require('post-notification-immediately');

const userInfo = {
    data: 'Hey there! :)'
};

postNotification('kUniqueNotificationName',userInfo).then(
    () => {
        // sent successfully
    },
    (err) => {
        // error caused by payload parsing
    }
);

Maintainers

License

MIT

About

A helper Electron & Node.js module to post notifications immediately via macOS distributed notification center

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published