I am creating a chat application using xmpp over Ejabbered for server and smack for Android client
I established the connection, logging in, sending and receiving messages, and then I encountered the problem of disconnecting and reconnecting the user's network, which was solved using the Reconnecting Manger in smack and xmpp-0198, however there is a case when I need to create a new connection in smack, but use the previous session (stream) to get all the messages stored in this session (they are not stored in offline messages), and if I create a new connection with a new stream identifier, user messages will be lost.
So there is a connection designer for implementing this solution. or server configuration for storing thousands of messages in offline messages
source
share