Closed adar2378 closed 3 years ago
I believe they lead to different user experiences, cancel/notify leads to all of the alerts and lights and such again, update is less intrusive as the notification doesn't do all the alerts again. It's a choice depending on use case I think
Thank you for your response. I could not seem to find any API for updating an existing notification. Could you provide some guidance on how should I update a notification?
https://notifee.app/react-native/reference/displaynotification
API used to immediately display or update a notification on the users device.
Returns a string (the id), then:
https://notifee.app/react-native/reference/notification#id
Notifications with the same ID will be created as the same instance, allowing you to update a notification which already exists on the device.
I believe that's the ticket. If those don't work we can reopen and troubleshoot
Thank you very much! I'll try that.
Hi, I'm trying to implement MessagingStyle notification for android. What would be the best option to update existing notification with newer messages? Or should I cancel the previous notification of the same conversation and create a new one with updated messages? Thanks in advance.