nwutils / nw-sample-apps

Sample Apps
MIT License
1.95k stars 551 forks source link

Feature request: Listen Notifications from 3rdParty apps on MacOS #35

Closed loretoparisi closed 8 years ago

loretoparisi commented 8 years ago

On MacOS, installed user apps can send notifications, that can read by Cocoa like using NSDistributedNotificationCenter so something like

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

Paxa commented 8 years ago

I think you should post in https://github.com/nwjs/nw.js/issues instead I'm not developer of nw.js itself

loretoparisi commented 8 years ago

Done thank you for the suggestion.