Titanium Community Questions & Answer Archive

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

How do you add a bage number to an app icon?

I would like to change the badge number for an iPhone app each time there is an update.

I know that this can be done through XCode directly.

What is the recommended way to do this through Titanium?

— asked March 10th 2010 by Edward Zhang
  • iphone badge number icon
0 Comments

4 Answers

  • Accepted Answer

    Looks like the documentation for that didn't get pulled in correctly. We're fixing that now.

    You can set the badge like this:

    Titanium.UI.iPhone.appBadge = 20;
    

    And unset it like this:

    Titanium.UI.iPhone.appBadge = null;
    
    — answered March 10th 2010 by Jeff Haynie
    permalink
    0 Comments
  • Thanks very much!

    — answered March 10th 2010 by Edward Zhang
    permalink
    0 Comments
  • Yes, stopped working on our app maybe about 6 months ago all of the sudden and can't get it to work. Not using push notifications… just update the badge based on various conditions when the app is running. Works fine for setting badges on tabs, but not the app icon.

    Using Ti 3.4.1

    — answered February 25th 2015 by Ken Rucker
    permalink
    0 Comments
  • It does not work for me. I tried both options. Anything else I should try?

    — answered March 23rd 2010 by Ahsan Habib
    permalink
    0 Comments
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.