The only way we could update the badge number via push notification would be if we were to store all your tasks online. For more information on this issue, please visit the link below.
http://groups.google.com/group/appigo-todo/web/will-todo-3-0-automatically-update-the-badge-count-using-push-notification
"The only way"? How often is that true in software?
For Appigo Todo, I think the problem is relatively straightforward: it's relatively easy to look forward in time and build a sorted list of {time, predicted badge count} pairs. Keep a running list (say 7 days into the future, or maybe 31 badge updates into the future) and when the app is running, push the list to the server whenever the it changes.
You'd need one {time, count} tuple for each of the upcoming local midnights in the list, and one for each event with a due time. The tuple could comfortably fit in 32-bits. Hardly storing "all your tasks online".
Note that this only applies to the two Due and Overdue settings. For the "All" and "Focus" settings, the badge number would only change when the task count changed, and that only happens when the app is running.
The only problem I can think of is if you have future plans where the badge count isn't purely a function of the task list and the current time. But I think even features like smart-lists (and badge count based on smart-list task count), could be handled by this implementation.
Wayne(struct tm *);
--
Learn more about Todo (task management made simple), Notebook (notes available everywhere), and AccuFuel (fuel efficiency tracker) on Appigo's website: http://www.appigo.com/
You received this message because you are subscribed to the Google
Groups "Appigo Todo" group.
To post to this group, send email to appigo-todo@googlegroups.com
To unsubscribe from this group, send email to
appigo-todo-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/appigo-todo?hl=en


Comments
0 comments to "Re: [appigo-todo] Automatically update of badge count"
Post a Comment