Page MenuHomePhabricator

Add support for desktop notifications
Closed, ResolvedPublic

Assigned To
Authored By
richardvanvelzen
Nov 20 2013, 9:12 PM
Referenced Files
None
Tokens
"Like" token, awarded by monsdar."Manufacturing Defect?" token, awarded by seoker."Manufacturing Defect?" token, awarded by avivey."Like" token, awarded by benjumanji."Like" token, awarded by rbalik."Like" token, awarded by anton.vladimirov."Like" token, awarded by maroux."Like" token, awarded by nicereddy."Like" token, awarded by krisbuist.

Description

Support Web Notifications for application notifications.

Major steps are likely to be:

  • Notifications require an enrollment step where the browser asks users to confirm that they want notifications.
    • Add SettingsDesktop Notifications and have that page check for enrollment and prompt the user to enroll.
    • This panel should also let users disable desktop notifications completely.
    • This panel should have a "Send test notification" button so users can confirm that notifications work and see what they look like.
  • If users are enrolled, we should emit application notifications as desktop notifications.
  • We may need to use JX.Leader to synchronize this (so multiple open tabs do not produce multiple identical notifications), or all browsers may be smart enough to deduplicate on their own.
  • We may need some additional preferences to control which application notifications promote into desktop notifications, but we'll probably have to build it and see how it feels first.

Event Timeline

richardvanvelzen raised the priority of this task from to Needs Triage.
richardvanvelzen updated the task description. (Show Details)
richardvanvelzen added a project: Phabricator.
richardvanvelzen added a subscriber: epriestley.
richardvanvelzen added a subscriber: richardvanvelzen.

Hey hey - here's some useful links on how to contribute good javascript --

http://www.phabricator.com/docs/phabricator/article/Contributor_Introduction.html
http://www.phabricator.com/docs/phabricator/article/General_Coding_Standards.html
http://www.phabricator.com/docs/phabricator/article/Javascript_Coding_Standards.html

That said, I wouldn't sweat things too much. Once you get to the arc diff stage you'll get all the feedback you can handle. :D

epriestley triaged this task as Wishlist priority.Apr 24 2014, 1:02 PM
epriestley removed a project: Phabricator.

Also interested in this. It could maaaybe reduce reliance on email </wishful thinking>

Diff that very hackily implements desktop notifications on top of standard notifications: https://secure.phabricator.com/differential/diff/27013/

Very interested in this. Willing to contribute code if someone will have time to look at the patch (it doesn't have to be accepted, I just want to know that I am not stepping into something that is unlikely to get merged any time soon).

I'd be happy to play with your patch.

Yoinking this. If you've made any progress on this, feel free to post a diff, otherwise I'm on it.

avivey added a subscriber: avivey.
avivey removed a subscriber: avivey.
This comment was removed by ollehar.