Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

App badge in RSS Feed

I'd like to add badge notifications to an RSS feed display (too appear on the apps main icon when new articles arrive). I think the code below is what I need, but I'm not sure where to place it? I'd like it to appear when the feed is updated with a new link and then disappear when the article is read/opened.


I'm using a modified Kitchen Sink XML-RSS example(with images removed). Any help appreciated.



— asked October 13th 2010 by John Howell
  • app
  • badge
  • feed
  • rss

3 Answers

  • Did you ever figure out a solutions for this? I am looking to do something similar.

    — answered November 27th 2010 by David Q
    1 Comment
    • that code works… what is the problem you are seeing?

      — commented November 27th 2010 by Aaron Saunders
  • if you press on a new RSS article you should have read it. Then simply do


    on a click event

    — answered November 29th 2010 by Glenn Tillemans
    1 Comment
    • I did something similar and also added a reference to my refresh button too. Otherwise every time someone refreshed the RSS feed, it would add 10 more to the count as I display 10 articles. To get around this, I added the following to the Refresh button:


      The only problem I haven't solved yet is how to set the count to 0 when (and only when) the app is installed. Would prefer to start from 0 rather than 10…

      — commented November 30th 2010 by John Howell
  • I know I'm answering an old post, but it would make a lot more sense for the user to have a variable that holds the number of unread posts rather than relying on the badge value to hold that number.

    Whenever an article is read, you can either deduct one from the unread posts count and then set the badge number to that value, or you can actually go count the number of unread posts and update the badge value.

    Note that you should only use the approach of deducting one from the unread count if you are ABSOLUTELY SURE you will never get out of sync with the actual unread count.

    — answered April 24th 2011 by Tim Holt
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.