18

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.

Chitrang
  • 5,097
  • 1
  • 35
  • 58
user3111156
  • 228
  • 1
  • 2
  • 6

2 Answers2

12

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.

Karun
  • 880
  • 1
  • 8
  • 19
  • after a long time i am responding on this but i still need to know this... and i am not getting the exact thing from Mark's answer too. so, can you please give me any link or code that is in iOS ? so, i can understand it. thanks for reply... – user3111156 Apr 07 '14 at 11:46
  • You can refer this link http://stackoverflow.com/questions/21657530/how-to-retrieve-chat-history-from-open-fire-in-android/22300454#22300454 – Karun Apr 07 '14 at 12:16
  • but After enabling ,how to get those archived message back ? – Mrug Jun 07 '14 at 06:34
  • @Mrug , you can refer this link http://stackoverflow.com/questions/21657530/how-to-retrieve-chat-history-from-open-fire-in-android/22300454#22300454 – Karun Jun 10 '14 at 10:38
  • @Karun : I have tested above plugin and its working fine, but the problem is its adding that message in database after some delays, SO how to overcome with this delay ? – Er.KT Apr 14 '16 at 07:18
  • @Er.KT I suggest you to check in the Openfire server settings whether there is a setting available to play with this delay value. If there is something like that, making it's value to 0 should help. – Karun Apr 14 '16 at 11:07
  • @Karun : I have already checked whole admin panel but there is no any settings available for the same – Er.KT Apr 14 '16 at 11:39
  • @Er.KT In that case, it seems we can't get those messages back as they are not even saved in the server because of that delay. – Karun Apr 14 '16 at 11:44
  • Nothing happen http://stackoverflow.com/questions/42084375/while-fetching-chat-history-i-am-not-getting-both-user-history-from-openfire – Mad Burea Feb 07 '17 at 08:07
  • I have enable this seting and able to see messages in openfire server but how can i get all data from server to my android app – Rajat May 31 '17 at 09:21
6
  1. You need to enable archiving on the server.
  2. Follow http://xmpp.org/extensions/xep-0136.html to get the messages.
Mark S
  • 869
  • 6
  • 11