android-mqtt-push icon indicating copy to clipboard operation
android-mqtt-push copied to clipboard

Has no reconnection mechanism ?

Open jacarrichan opened this issue 10 years ago • 2 comments

Has no reconnection mechanism ?

jacarrichan avatar Dec 16 '14 03:12 jacarrichan

for reconnecting you should start service again in callback class inside connectionlost() function!

hamidrezabstn avatar Nov 09 '15 10:11 hamidrezabstn

Sure about that ? In the connectionLost function when I call the service again but since there is no network an error is thrown.

What I want is : when the devices disconnects, then the device will automatically reconnect and resubscribe as soon as the networks comes back. Exactly like GCM does. How can I do that?

alexislg2 avatar Nov 30 '15 17:11 alexislg2