简体   繁体   中英

Quickblox Android: Total unread messages count request

I have seen that in the iOS sdk and the API I can get the total unread messages count, but I couldn't find a way to do the same with the Quickblox Android SDK. Is there a way to achieve this?

I need something similar to this but for Android instead of iOS:

let dialogsIDs: NSSet = NSSet(array: ["55fae39ca28f9a701d0058fb"])
QBRequest.totalUnreadMessageCountForDialogsWithIDs(dialogsIDs as! Set<String>, successBlock: { (response: QBResponse, count: UInt, dialogs: [String : AnyObject]?) -> Void in

}) { (response: QBResponse) -> Void in

}

I opened an issue with this in the quickblox github repo and they have already included it in the next release. It is already available in the last snapshot.

当您获取聊天对话框时,每个对话框中都有一个键“ unreadMessageCount ”,该键负责提供未读计数。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM