채팅 응용 프로그램에 QuickBlox
SDK를 통합했습니다.QuickBlox에서 읽지 않은 메시지 만 가져 오기?
나는 읽지 않은 메시지 나 오프라인 메시지의 문제로 좌절감이 많습니다.
오프라인 메시지 QuickBlox
은 푸시 알림을 보냅니다. 그러나 앱 사이드에 저장하기 위해 건너 뛰는 곳도 있습니다.
마치 내가 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];
에서 위의 방법은 모두 마지막에서 나에게 메시지를 반환합니다. 하지만 중간에있는 메시지 중 일부는 건너 뜁니다. 그렇다면 어떻게 그 perticular 메시지를 얻을 수 있습니다.
간단하고 간단하게 말하자면, 카운트를 넘기지 않고 읽지 않은 메시지는 카운트가 마지막에서 오는 메시지를 제공하기를 원합니다.
QuickBlox
은 읽지 않은 메시지 만 검색해야하는 방법이 있습니다.