fossar / selfoss

multipurpose rss reader, live stream, mashup, aggregation web application
https://selfoss.aditu.de
GNU General Public License v3.0
2.37k stars 343 forks source link

Unread count in favicon #645

Open Poorchop opened 9 years ago

Poorchop commented 9 years ago

Since selfoss doesn't have any kind of notification system, it would be cool if the favicon could be updated to reflect the unread message count. For those of us who leave selfoss open in a background tab in the web browser, this would alleviate the need to keep switching to the selfoss tab to check for unread stories. I know that gmail has a system like this in place, so I'm thinking that it should be possible in selfoss too.

There are already some JavaScript libraries for accomplishing this, including this one.

danieljkemp commented 9 years ago

Currently selfoss does not have any mechanism to update the unread count (pretty sure on this but someone please correct me if I am wrong). Such a feature would be nice but you would need to start with a way to get the page to refresh the unread count after some interval.

On Tue, Apr 28, 2015, 15:07 Poorchop notifications@github.com wrote:

Since selfoss doesn't have any kind of notification system, it would be cool if the favicon could be updated to reflect the unread message count. For those of us who leave selfoss open in a background tab in the web browser, this would alleviate the need to keep switching to the selfoss tab to check for unread stories. I know that gmail has a system like this in place, so I'm thinking that it should be possible in selfoss too.

— Reply to this email directly or view it on GitHub https://github.com/SSilence/selfoss/issues/645.

Poorchop commented 9 years ago

You're right, I forgot that the page doesn't automatically refresh. Even with a cron job updating the feeds, nothing would change unless the page was manually refreshed. I guess this feature would require a pretty big change to the core, maybe using AngularJS to update automatically. That would be a huge improvement to selfoss overall, but that's a much larger issue.

jtojnar commented 1 year ago

We now use react so this should be fairly easy to implement with something like https://github.com/oflisback/react-favicon