UseAllFive / tc-documentation

3 stars 0 forks source link

Only show enabled pending items in the red counter. #353

Closed jasonfarrell closed 13 years ago

jasonfarrell commented 13 years ago

In the current screen shot, you'll see I have only one item that can be "completed" or "missed": http://cl.ly/0A40322E1q093X1K0B0Y

In the red counter, it shows I have six, because it's including items in the future. It should only count the items that are enabled: http://cl.ly/421d100z093n0C200b03

adolfo commented 13 years ago

At the moment, the app icon badge number is only updated when the user opens the app and fetches the current week or a user completes an activity. If a user opens the app and there are 0 pending items today, but 6 later this week, the app will still set the badge number to 6. If we did as you propose, we will run into an issue where the badge count would easily become out of sync with the application/server. For example, if you completed your activity today you would have 0 pending items and the app icon badge would disappear. If you quit or backgrounded the app, come tomorrow and every day until you relaunched/foregrounded the app your home screen would say that you have 0 pending items even though you may have potentially 5 more activities to complete this week. Push notifications from the server would be a way around this issue....

jjkaye commented 13 years ago

@adolfo and @m14t: according to the previous response am I to understand that push notifications are not set up?

adolfo commented 13 years ago

Correct.

jjkaye commented 13 years ago

So if that's the case, let's just close this ticket for now.