How To get Old Messages (Chat History) from XMPP

2019-03-11 02:27发布

问题:

I am new to XMPP.

and I need to get chat history from Openfire with XMPP.

I did Googling but didn't get satisfactory Answer.

Any link or idea will be great help.

回答1:

You need to install Monitoring service plugin to enable message archiving. You may have to upgrade your openfire service if this plugin is not appearing in your available plugins section in the admin console.

You will need to log into the admin console and go to: Server --> Archiving --> Archiving Settings to enable message archiving.

Hope this helps you. Feel free to comment in case of any queries/doubts.



回答2:

  1. You need to enable archiving on the server.
  2. Follow http://xmpp.org/extensions/xep-0136.html to get the messages.


标签: xmpp openfire