Quantcast
Channel: Ignite Realtime: Message List
Viewing all articles
Browse latest Browse all 12000

Re: How to correctly disconnect from aSmack

$
0
0

It seems you have started your service as STICKY and this is the reason its connect to XMPP server again when you completely kill your app from task manager .

You dont have to connect XMPP server every time when user come to the app.

Check if connection  is not connected then only try to connect in your running service .

connection.isConnected()

{

Do you code to connect

}

else

nothing


Viewing all articles
Browse latest Browse all 12000

Trending Articles