-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OS X] Notifications are not cleared / removed when emails are viewed / read #1393
Comments
Is this possible with N1 from the Javascript side? Does a native module for OS X Notification management need to be made? |
This has a pretty simple solution from the javascript side. The only flaw I see with this is that these There is an alternative - service workers get a different API. They receive a close event, and they're also able to get a list of open notifications (meaning we never need to store a list in the first place). It doesn't appeal to me to pull in a service worker just for this though. The concept of a service worker just doesn't really mesh with the idea of a persistently-open desktop app. I also don't know how difficult it would be to pull a service worker into the existing build and test process. |
Fixes nylas#1393 The objects returned by `new Notification()` have a `.close()` method. So we can just keep a list of notifications that have been sent, and close them when that message has been read.
In OS X, notifications are sent to the user's notification center. Most applications like the stock mail app will clear notifications from here once an email is read. This is not the case, however. Even after you read a message, you will find the notification center extremely cluttered.
To replicate this on OS X, simply send a few emails over and view the notification center.
Not that I saw
version 0.4.5-b0ec335 (0.4.5-b0ec335)
Bug?
No
No
Try to provide an example as a file attachment or a screenshot.
No
The text was updated successfully, but these errors were encountered: