iOS / Swift 2.1: retrieving "old" messages from a channel - polling messages

I have managed to make a chat work live, but I am a bit unable to retrieve “old” messages passed between two users.

I can see in the code, there is some “pollMessages” code, but there is nothing about that in the documentation.

  1. How do you retrieve “old” messages on a channel? (with subtopic and headers)
  2. Is there any code/documentation/sample of how to use the pollMessages?

Thanks in advance.

Bilal,

Published messages are ephemeral, Backendless removes them a few minutes after they are published. To preserve the messages, you can create a custom server-side event handler for the message publish event and store the messages in a data table. This way your app look up any “old” messages.

Regards,
Mark