cocoa touch - iPhone: Incrementing the application badge through a local notification -


is possible increment application badge through local notification while app not running?

i know how set badge, haven't found way increment value.

localnotification.applicationiconbadgenumber = 23;

update: found (far being perfect) solution. can predict happen, if user doesn't open app , add notifications every +1 event.

an example:

  • for day 1: count = 0
  • for day 2: localnotification.applicationiconbadgenumber = 1;
  • for day 3: localnotification.applicationiconbadgenumber = 2;
  • for day 4: localnotification.applicationiconbadgenumber = 3;

==> put these notifications in array , set them before application exits.

however, i'm searching better solution workaround.

the way you're going able dynamically set badge number when application isn't running push notifications. you'll have track updates on server side.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -