Closed loretoparisi closed 8 years ago
On MacOS, installed user apps can send notifications, that can read by Cocoa like using NSDistributedNotificationCenter so something like
NSDistributedNotificationCenter
NSDistributedNotificationCenter *center = [NSDistributedNotificationCenter defaultCenter]; [center addObserver:self selector:@selector(allNotifications:) name:nil object:nil];
Is possible to build an API to listen for notifications to be added to the Notifications API: https://github.com/nwjs/nw.js/wiki/Notification
I think you should post in https://github.com/nwjs/nw.js/issues instead I'm not developer of nw.js itself
Done thank you for the suggestion.
On MacOS, installed user apps can send notifications, that can read by Cocoa like using
NSDistributedNotificationCenter
so something likeIs possible to build an API to listen for notifications to be added to the Notifications API: https://github.com/nwjs/nw.js/wiki/Notification