Open pwblaine opened 10 years ago
As of commit https://github.com/pwblaine/buriedios/commit/055d725107f6ab6f8af5ce81d168cebd4e714d3f, the behavior of badges is as follows:
badges on an installation clear when a user logs out, are incremented on all channels that listen for a user, and decrement on an installation when a user reads the message opened from a push notification or from the unearthed view
TODO: maintain badge count globally, have badges represent the number of unread capsules on any device the user is logged into
There's really only two options here:
1) on app open, clear all badges 2) have the badges equal the number of unread messages and clear them one at at a time in the read process
to add some context with a current model, the facebook mobile app clears all when you open the app, however they have an in-app counter for unread messages. currently our UI doesn't track this, and in lieu of an in-app counter, I will attempt to have the badge always equal the number of unread messages.