I'm using the Quickblox iOS SDK for instant messaging in my app. When a user logs in I retrieve the list of messages. I am trying to retrieve the last N messages. I use extended request parameters as specified in this document: http://quickblox.com/developers/SimpleSample-chat_users-ios#List_chat_messages
This call retrieves the first 100 messages, not the most recent ones. I also checked out the list of parameters to send from here: http://quickblox.com/developers/Chat#Retrieve_messages
Using a combination of the limit and sort parameters still does not give the desired result.
- How can I make a request to retrieve the last N messages in a dialog?
- How can I load last but N messages? for example, last 100 messages before the most recent 100. Similar to limit 100, but skip 100, in reverse.
//Try this out: