I have a chat app where notification is sent upon receiving a message while the app is not active.
I went through the documentation but it wasn’t very clear on the following:
- How to clear the notifications counter badge upon opening the app whether through the notification or the app icon after being closed.
The suggested answer is clearing the badge property of the notification received by the app but that only works when the app is open so it can receive the notification.
- How to set a thumbnail to the notification shown in the notifications tray.
- How to override or clear notifications that were previously sent to the client (related to messages) to avoid stacking multiple notifications of multiple messages from the same sender ?