Users do not receive offline messages when they get online.
Could you please explain why users do not receive offline messages?
I used below query to fetch the previous messages.
let resPage = QBResponsePage(limit:100, skip:self.messageHandler.messageArray.count)
let parameters = ["sort_desc" : "date_sent"]
QBRequest.messagesWithDialogID(createdDialog.ID,
extendedRequest: parameters,
forPage: resPage,
successBlock:
{(response: QBResponse, messages: [QBChatMessage]?, responcePage: QBResponsePage?) in
/*** You will get all the previous messages ***/
},
errorBlock: {(response: QBResponse!) in
/*** Some error occured while getting messages ***/
})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With