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

org.igniterealtime.smack:smack-android-extensions:4.1.0-alpha6
org.igniterealtime.smack:smack-tcp:4.1.0-alpha6
org.igniterealtime.smack:smack-android:4.1.0-alpha6

 

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?

 

 

 

Outcomes