I've seen some comments here on how to clear the badge count after sending a push notification. I've seen them for Phonegap and for iOS native, but not for Titanium. I can't figure out how to reset it to 0 after a user opens the app.

I basicaly sent a notification with badge count 1, then do PushWoosh.sendBadge(0);, and now want to remove the badge icon. So a next push notification will show up as 1 again..

asked 03 Jul '14, 13:18
michelb's gravatar image

michelb
1113

Hello,

Generally, any of the first three options here should do the trick. Please note that sendBadge changes the badge value saved on our servers, which is very important in case you would like to use incremental badges.

Please let us know about the results!

permanent link
answered 07 Jul '14, 10:50
Dmitry%20%20Dyudeev's gravatar image

Dmitry Dyudeev
3.7k7

Awesome, thanks! Didn't occur to me that clearing badges would ofcourse be a system call instead of your API. Fixed with 'Titanium.UI.iPhone.setAppBadge(null);' and working exactly as I intended.

(07 Jul '14, 12:10) michelb michelb's gravatar image
-1

Hi,

Do we need to include this in the callback function!! please let me know. Thanks.

permanent link
answered 08 Jan '15, 12:59
Aparna's gravatar image

Aparna
91

Please do not post irrelevant answers to the topic question.

(10 Jan '15, 08:58) shader shader's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×353
×30
×18

question asked: 03 Jul '14, 13:18

question was seen: 3,002 times

last updated: 10 Jan '15, 08:58