Smack API - Read Chat History from Openfire Server

后端 未结 2 432
渐次进展
渐次进展 2020-12-09 07:09

How can I fetch chat log or chat history from Openfire server using Smack library into an Android application?

2条回答
  •  [愿得一人]
    2020-12-09 07:49

    As far as I know, there is no storing of chat history in Openfire. You can only get offline messages sent by user (when they connect next time for example), but if you want to store the messages you can implement it yourself directly on the XMPP server (personally I did it using mongodb - it works great!).

    But then, maybe I missed something in Openfire...

提交回复
热议问题