Closed lucasbasquerotto closed 4 months ago
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.
not stale
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.
not stale
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.
not stale
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.
not stale
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.
not stale
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.
not stale
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.
When adding notifications in a group and displaying a summary, the text (subtitle) is updated accordingly. If you add a listener of the dismiss event and update the subtitle, it's also updated accordingly.
But when dismissing notifications to remain only 1 notification, and then adding a new notification and updating the summary text, it's not updated correctly (I think it uses a cached text). The summary notification returned by
getDisplayedNotifications()
has the correct subtitle in the notification prop, but for some reason it's not updated in the screen.If you dismiss all notifications, or until at least 2 remain, this issue doesn't happen. If you add 1 more notification to that group and update the summary, it's updated correctly again.
You can use the following code as a demo (there's a snack I created for it, but it won't work in expo go as it requires notifee):
You can include the above code in App.js and test it directly (if using managed expo, you need to compile an apk or generate with EAS to have notifee).
Click the
Add
button 3 times, which will create 3 notifications with a summary.Dismiss 2 of the 3 notifications.
For each action, the summary was updated accordingly.
Then add a new notification. The summary text will not be updated, instead showing
1 new message
(you can see withconsole.log()
, if you want, that the notification property of the summary notification is correct with2 new messages
in the subtitle).Adding a new notification after that updates the summary correctly.