Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8298543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:48:54+00:00 2026-06-08T15:48:54+00:00

I want to push out RSS feed updates to HTML5 desktop notifications which the

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T15:49:03+00:00Added an answer on June 8, 2026 at 3:49 pm

    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.

    // Desktop notifications are only available on WebKit browsers, for now, so only carry out
    // notifications if the API is available.
    if (window.webkitNotifications) {
    
        // Just a piece of data to determine whether 1) the page just loaded, and 2) there are any
        // new elements in the feed.
        var lastTime = null;
    
        // This is to check if you have permissions to display notifications. Usually, the
        // checkPermissions method only returns a number. 0 being that you don't have permission
        // to display notifications, yet.
        if (window.webkitNotifications.checkPermissions() <= 0) {
            // If you don't have permission, then get the permission from the user.
            window.webkitNotifications.requestPermission(callback);
        }
    
        // The code below will run every thirty seconds.
        setInterval(function () {
            // What we want to do here is carry out an AJAX request to check for changes in the RSS
            // feed only if we have permission to display notifications. Otherwise, what's the point
            // of checking for changes if the user doesn't want to know?
            if (window.webkitNotifications.checkPermissions() > 0) {
                $.jFeed({
                    url: 'urltofeeds',
                    success: function (feed) {
                        // Looks at the latest item's time, and checks to see if it's any different
                        // than what we have in memory.
                        if (lastTime !== feed.items[0].updated) {
    
                            // If so, determine whether we recorded the time, or not.
                            if (lastTime !== null) {
                                // If we did record the time, that means there are new content from
                                // the last time we checked.
                                window.webkitNotifications()
                            }
    
                            // Update the last time.
                            lastTime = feed.items[0].updated;
                        }
                    }
                });
            }
        }, 30000);
    }
    

    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 (?).

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to be able to push out application updates to windows mobile 5
I am developing an application in which I want to use push notification service.
I want to be able to push messages out to certain customers who have
I want to trigger some code whenever I push out a new version of
Hoping to get some clear advice on this one. I want to push updates
I want to push a file from my Java program to an Android emulator.
Generally whenever i want to push in the changes to remote Git i follow
I have a project that I want to push to a Mercurial repository on
Read about Server push here . I want to push data to client from
Howday, I want to push data to flex clients. I am talking about anywhere

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.