【发布时间】:2016-08-04 08:51:13
【问题描述】:
我正在使用 Openfire、XMPP、iOS 的“GroupChat”。
我想在定义的时间后获取历史记录,所以我用谷歌搜索它,我发现它使用“Since”。
NSXMLElement *history = [NSXMLElement elementWithName:@"history"];
[history addAttributeWithName:@"since" stringValue:@"2016-07-04T09:06:38.588Z"];
[xmppRoom joinRoomUsingNickname:self.xmppStream.myJID.user
history:history
password:nil];
但它从表中获取所有记录,我只想在定义的时间后记录。 我也使用了明火时间戳,但它没有用。
我如何随时间获取历史记录?
【问题讨论】:
标签: ios objective-c xmpp openfire