lichess-org / lila

♞ lichess.org: the forever free, adless and open source chess server ♞
https://lichess.org
GNU Affero General Public License v3.0
15.66k stars 2.28k forks source link

nicer notifications with icon and stuff #1140

Closed ornicar closed 8 years ago

ornicar commented 9 years ago

https://developer.chrome.com/apps/richNotifications

Unihedro commented 9 years ago

so you want a notification tray?

ornicar commented 9 years ago

I mostly want a knight icon in the "It's your move" notification.

Unihedro commented 9 years ago

Which image should be used? The favicon is too small and looks jagged to be used on upscaling.

Unihedro commented 9 years ago

This is the best icon I can find from https://github.com/ornicar/lila/tree/master/public/images, it's still too small.

Unihedro commented 9 years ago

Chrome rich notifications API is for chrome extensions and apps, and not exposed to websites. There is currently no way to trigger rich notifications from websites yet without a new service worker, which is not worth the effort.

There are still improvements to make following 5d57e12 though, like better notification body for inbox messages (with preview of the content) and such, and having some types of notifications to actually do something on click (like clicking the notification where you get challenged -> show challenge span if previously hidden and anchor the browser scrolling to it).