I want to push out RSS feed updates to HTML5 desktop notifications which the user would receive if they had my site open in Chrome.
I gather I need to do the following (somebody much smarter than me explained this in overview) – create a server-side component which will poll the feed for updates; and then perhaps store them in a database (?). Then a client-side component would check for updates and display them using the HTML5 notifications API.
Is anyone confirm that, and if possible help me out with more detail so that I can track down the various bits I need to make this work? Much appreciated.
I’m going to assume that you’re using jQuery, and you don’t mind using plugins. In this case, we’re going to use the jFeed plugin for parsing RSS code.
Sounds like your friend described long-polling. That’s a perfectionist’s approach for something as simple as a blog.
Simple polling will be the same thing. The difference is, a notification will only show up at every polling interval, instead of instantaneously.