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?
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;
-
Thanks very much!
-
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
-
It does not work for me. I tried both options. Anything else I should try?