AnsweredAssumed Answered

Android smack client disconnects after couple of minutes

Question asked by Chris on Jan 3, 2017
Latest reply on Jan 4, 2017 by Flow

I am using smack android SDK to develop my android chat application. Following SDKs are used to develop this chat app



I can successfully login to the chat and continue to chat with other users. However after couple of minutes of inactivity (5 - 10 mins) chat gets disconnected. Then

public void reconnectingIn(int seconds);

method in ConnectionListener get called continuously but in non of these reconnecting attempts client doesn't get connected to the server.


Can anyone please shed some light to solve this issue?