Retrieve history chat Openfire XMPP framework

匿名 (未验证) 提交于 2019-12-03 07:50:05

问题:

I've developed a chat app using XMPPframwork of Robbie Hanson and Openfire server. I can chat one to one and chat group successfully. But when I get history of chat, I can't get whole history. I use XEP-0136 to archieve history:

Send IQ:

                            100               

Receive:

                           asdf                               aafs                               sax                               0             2             3               

But when I open the database, ofMessageArchive table, I can see much more messages with group12 (~20 messages) while in the result, I only got 3. May I miss something?

回答1:

Follow this format, it works for me perfectly,

                           urn:xmpp:mam:0             id@domain                               message_count               

** If xmpp:mam:0 doesn't work use xmpp:mam:1



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!