2
votes

I have created a chat application using openfire server and used Smack Api.Its all working fine,now i need to retreive the chat history from openfire server.

I have installed Monitoring Plugin to archive the chat.

enter image description here

In above screenshot, I can able to see the chat history for both one to one chat and group chat.

Now i need to get the chat history through app programmatically.I have referred many articles and post but did not find a solution.

If anyone know please tell your suggestions.

Thanks in advance.

2

2 Answers

0
votes

Possible duplicate question.

  • If you have installed the monitoring plugin, you can read in its readme file under the configuration paragraph the following content:

Chat archiving is enabled by default. However, only information about who is communicating and at what time is stored unless chat transcript archiving is enabled. To enable chat transcript archiving or group chat archiving, you will need to log into the admin console and go to:

Server --> Archiving --> Archiving Settings

  • Thereafter the messages get stored in your external database table 'ofMessageArchive'.
  • This history can be further fetched from the database.
-1
votes

the XEP (XMPP Extension Protocol) that discuss about this is the XEP-0313.

There are some open issues in Openfire backlog to acomplish this XEP.

So, I suppose that ins't possible yet :(

Good luck!