Closed mufit-developer closed 4 years ago
Use setSocketTimeout(0)
like in android-messenger-app sample to set unlimited socket lifetime. Set any value to this parameter to recreate chat connection every time after this timeout.
Thanks, it's working now!
Problem
I keep receiving SocketTimeoutException errors from Smack, and MessageListener and MessageSentListeners are not called as a result. Messages can be sent, but I cannot verify whether they are sent or not since the MessageListeners do not work. I have initialized my Connectycube credentials, settings, logged in to obtain user authorization, and logged into chat service successfully.
On a side note, I tried the android-messenger-app sample, and noticed that Smack printed out many lines indicating connection was successful. In my case Smack did not print anything.
SDK used is v1.8.1
Settings
Log