-
Notifications
You must be signed in to change notification settings - Fork 1.9k
V1.x Android: handle dismissed notifications #1816
Conversation
Doesn't this go against some common cases of conversation/threaded applications? Such as:
At this point, most applications would bring back the 2 you dismissed (as they actually weren't processed, just dismissed/delayed), agregate the third one, and present the user a new inbox-style notification with all 3 of them. The interpretation of what |
Also, we might need to bring whatever is decided here to the master branch too. |
@fredgalvao this PR deals with Inbox style notifications not Android N groupings. When you dismiss an inbox style notification all of the notifications should be dismissed from the plugin as they are only contained in one notification. In Andoid N they can be expanded to have multiple lines in the notification center. This also fixes the |
I should've read the related issue at full before commenting. Nevermind my daydreams. |
Would you like me to do a v2.x pull request also for this? |
@NiTrOGhost nope, I was doing a cherry-pick and my computer crashed. Should be committed soon. |
that's great 😁 |
@NiTrOGhost harsh! You are happy my computer crashed 😉 |
* handle dismissed notifications * added missing const * 🐧 🐛 obligatory commit message
@NiTrOGhost merged into v2.x |
This thread has been automatically locked. |
Description
When a user dismisses notifications, you would expect them to go away. Currently when using Inbox style, previous notifications will be included, even though the user has dismissed the notification. This fix handles dismissed notifications, and clears the internal list.
Related Issue
#1665
Motivation and Context
With the related issue, originally the dismissal of the notification would result in the app opening which is obviously the incorrect way to handle this, but the "fix" applied was just to remove the deleteIntent altogether, which is also the incorrect way to handle this.
How Has This Been Tested?
I sent a bunch of inbox style notifications with the same notId, dismissed the notification, then resent a bunch more. Checked to see if the previous dismissed notifications were gone. They were.
Screenshots (if appropriate):
Types of changes
Checklist: