I'm developing a chatting application where we have deployed the eJabberd on server and using smack library client for android. Now the problem is i was not able to get the previous chat history to show. Please help me out in getting the chat history.
Asked
Active
Viewed 2,372 times
1
-
What did you try ? What is the result ? – Mickaël Rémond Mar 21 '16 at 13:57
-
Giving more details is important because there is several things that could be called "history" in XMPP. – Mickaël Rémond Mar 22 '16 at 15:49
-
Actually i dint get any API for getting chat history using Smack Library. – Naresh Gunda Mar 23 '16 at 11:54
-
I had given detailed answer on this post: https://stackoverflow.com/a/55574395/6771052[enter link description here](https://stackoverflow.com/a/55574395/6771052) – vishal gupta Apr 08 '19 at 13:23
1 Answers
1
Chat history (latest x messages) are retrieved as defined in XEP-0045 Multi-User Chat. Message Archive are retrieved as defined in XEP-0313 Message Archive Management. Use one of those specifications.

Mickaël Rémond
- 9,035
- 1
- 24
- 44
-
-
It means we do not get the history from the Xmpp smack.As i notice in IOS , they are easily getting the one to one chatting history. If there any way to get the XMPP chatting history.Please let me know.. Thanks – Ravindra Kushwaha Oct 10 '16 at 12:19
-
-
@shuvro Yes you can get message history between two users. As I explained: Query the Message Archive. – Mickaël Rémond Nov 15 '16 at 07:50