How to handle push notifications to serve the following cases?

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:

Server end:

1.How to set a thumbnail to the notification shown in the notifications tray.

2.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 ?

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.