-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] Summary text is not updated in some cases #926
Comments
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?
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?
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?
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?
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?
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?
Thank you for your contributions. |
not stale |
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.
The text was updated successfully, but these errors were encountered: