Sinch SDK - do not receive old messages

Every time I log out and then log in to a specific user in the Sinch SDK, I get old messages directed to that user (it also calls the "send" callback with the old messages that were sent in the previous "session"). Is there a way to add a time frame to life for each message, or disable this feature?

Currently I am adding the send time per message and if it is longer than X minutes I don’t show it, but this is a very bad workaround.

+3


source to share


1 answer


Hi, messages are kept for 30 days and when you clear the device (for example, delete or delete all user files), these messages will be delivered to that device. Its function is to deliver messages to all devices.

We see it as a great feature to make sure all devices are in sync;)



If you did not destroy the user files folder, this will not happen in the logout script.

+4


source







All Articles