news-android
news-android copied to clipboard
Notifications should stay hidden once they are dismissed
Given you get a notification about A and you swipe it away to dismiss it, and a new notification B arrives, i'd expect only B to be shown.
Currently it shows A and B which is nagging because the notification recurs apparently on each synchronization.
Attention: The "Mark as read" action of the notification must only be applied to the notifications that are shown, so given you dismissed A, it should only not appear in the notifications again - the state is still unread. Given B arrives, and we trigger the "Mark as read" action in the notifications, only B must be set to read.
cc @desperateCoder
Update: The wording of the notification action should of course be Mark as read instead of Mark all as read.
Thank you for your input stefan! Just to clarify
By
- A you mean let's say the news items A1, A2, A3
- B you mean let's say the news items B1, B2, B3
So notification A is shown after a sync has finished and notification B is shown after the next sync cycle. And you expect when sync B is finished to get a notification only about B1, B2 and B3. What is supposed to happen to notification A if you didn't dismiss it? Should it be dismissed automatically? And the mark as read feature would only mark B1, B2 and B3 as read if you hit the "Mark as read" button on notification B? You get a preview of only 6 items.. depending on your sync interval and how many feeds you subscribed to you have more than 6 new unread items - should the mark as read feature mark only the visible 6 items as read or should it mark all items as read that were synchronized in that cycle?
Right now the notification refers to all articles that are unread (Therefore all articles in your nextcloud will be marked as read if you hit the action button in the notification). The notification always pulls the last 6 unread items from the database - even if the only returned a single new unread article. (Ref).
Ah, i understand the problem. I think i'd like to differentiate between "notified" and "read" state, but that's kind of tricky since the shown notifications are limited to 6 items, so my idea won't work...
For me the main problem is that if i swipe away a notification, it will return after every sync, even if there are no new items, which is a bit annoying.
Maybe, to simplify my feature request, one could only show a notification if it is different to the last one (that has been swiped away), for example if a new item has been added...?