Retrieving offline messages using asmack

吃可爱长大的小学妹 提交于 2019-12-04 10:47:52

i partially solved added a packet listener after login but the same problem persist when internet go down. in that case i intercept reconnectionSuccessful event and remove and add again the packet listener but the messages sent when the user was offline is lost .

Somebody have the best solution to solve it?

Send your presence afetr logging in to the XMPP server. You have forgot to add packetListener which listens for the upcoming offline messages. Hope this works.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!