A node.js lib to access the Apple Notification Center Service (ANCS)
npm install ancs
var ANCS = require('ancs');
ANCS.discover(callback(ancs));
ancs.connect(callback);
ancs.disconnect(callback);
ancs.on('notification', function(notification) {
// ...
});
notification.readAppIdentifier(function(appIdentifier) {
// ...
});
notification.readTitle(function(title) {
// ...
});
notification.readSubtitle(function(subtitle) {
// ...
});
notification.readMessage(function(message) {
// ...
});
notification.readDate(function(date) {
// ...
});
notification.readAttributes(function(attributes) {
// ...
});