Ios 是否仅从QuickBlox获取未读邮件?
我在聊天应用程序中集成了Ios 是否仅从QuickBlox获取未读邮件?,ios,chat,message,quickblox,Ios,Chat,Message,Quickblox,我在聊天应用程序中集成了QuickBloxSDK 我对未读消息或离线消息的问题感到有点沮丧 在脱机消息中,请发送推送通知。但有些应用程序会被跳过存储在应用程序端 比如说,如果我收到25条消息的通知,我点击其中一条来自通知的消息,应用程序就会打开,但我如何才能得到这24条未读(离线)消息 QuickBlox提供了几种检索消息的方法 团体 [[QBChat instance] createOrJoinRoomWithJID:room.JID membersOnly:YES persistent:Y
QuickBlox
SDK
我对未读消息或离线消息的问题感到有点沮丧
在脱机消息中,请发送推送通知。但有些应用程序会被跳过存储在应用程序端
比如说,如果我收到25条消息的通知,我点击其中一条来自通知的消息,应用程序就会打开,但我如何才能得到这24条未读(离线)消息
QuickBlox
提供了几种检索消息的方法
[[QBChat instance] createOrJoinRoomWithJID:room.JID membersOnly:YES persistent:YES historyAttribute:@{@"maxstanzas": count}]; // Where count is the unread messages count which i get from the `QBChatDialog`, And this code gives me unread messages from the `XMPP` server.
QuickBlox
NSMutableDictionary *extendedRequest = [NSMutableDictionary new];
extendedRequest[@"limit"] = @(limit);
if (offset) {
extendedRequest[@"skip"] = @([offset integerValue]);
}
extendedRequest[@"sort_desc"] = @"date_sent";
[QBChat messagesWithDialogID:dialogID extendedRequest:extendedRequest delegate:self];
因此,有没有任何方法可以让
QuickBlox
只检索未读邮件。此时,您可以在应用程序关闭(或移动到后台)的位置保存日期时间。然后,当您收到推送时,您可以从以前保存的datetime加载对话框