dalinaum / IRCCloud

Mac App, Win App and Linux app for IRCCloud. (An Electron wrapper for IRCCloud.)
69 stars 8 forks source link

Show a badge with a tally of mentions/highlight words in OS X app icon #15

Open ryanfeeley opened 8 years ago

ryanfeeley commented 8 years ago

Would love to see this in OS X so that IRCCloud gets the same treatment as other messaging apps.

Badges keep a count of how many new items or notifications are waiting for you in an app. A badge with a number appears on the upper-right of an app's icon in the dock to indicate how many new items are waiting. For example, a badge attached to the App Store icon indicates how many updates for the software you’ve installed from the App Store are available to install. A badge on the Mail icon in the Dock tells you how many unread emails you have.

dalinaum commented 8 years ago

Hello @ryanfeeley I don't know Electron supports this. I will investigate this issue next week.

ryanfeeley commented 8 years ago

Great! Currently working using Fluid, but that project does not appear to be maintained, so limited time only I suppose.

grigarr commented 8 years ago

https://github.com/atom/electron/blob/master/docs/tutorial/desktop-environment-integration.md#notifications-windows-linux-os-x

This looks like the documentation for configuring notifications. I may take a stab at PR for this feature.

grigarr commented 8 years ago

https://www.npmjs.com/package/electron-notification-shim may be helpful, it seems the html5 notification support in electron is somewhat limited. Combining the shim with https://www.npmjs.com/package/node-notifier should be a little more robust.