How To get Old Messages (Chat History) from XMPP
Asked Answered
D

2

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.

Dreadfully answered 17/12, 2013 at 12:22 Comment(2)
Have you implemented in objective C/Swift for getting historyEdee
for the android what i have to do any idea?Graybill
K
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.

Kew answered 11/3, 2014 at 8:9 Comment(10)
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...Dreadfully
You can refer this link #21658030Kew
but After enabling ,how to get those archived message back ?Adductor
@Adductor , you can refer this link #21658030Kew
@Kew : 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 ?Misguidance
@Misguidance 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.Kew
@Kew : I have already checked whole admin panel but there is no any settings available for the sameMisguidance
@Misguidance 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.Kew
Nothing happen #42084875Edee
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 appPeaceable
S
6
  1. You need to enable archiving on the server.
  2. Follow http://xmpp.org/extensions/xep-0136.html to get the messages.
Supplication answered 17/12, 2013 at 13:25 Comment(3)
Should I use this for group chat also?Wellbred
This is for Coredata archiving not from getting message from Server OpenfireEdee
Seems that xep0136 is now DEPRECATED and the specification now says that we follow xmpp.org/extensions/xep-0313.html instead (xep0313) (the reasons they mention is that 0136 may be harder to implement and has more features that are usually needed, thus 0313 which is easier to implement client-side is a better match for the xmpp philosophy).Dorsad

© 2022 - 2024 — McMap. All rights reserved.