spamguy/diplomacy

Implement Push API/Notification API

Opened this issue · 1 comments

Browser-level notifications (as in, the browser itself brings up a small note, regardless where you are on your computer) for game events would be a major win. This stuff is so new Chrome only added it to its beta this week.

Push API: https://w3c.github.io/push-api/
Notification API: https://developer.mozilla.org/en-US/docs/Web/API/Notification/Using_Web_Notifications

Obviously requires socket.io implementation first. Probably worth doing this feature before diving into press.

Current status on browser implementation:
http://caniuse.com/#feat=eventsource
TLDR: This is available in current versions of all browsers except Opera mini and Microsoft.