In android when in sleep mode, we need to manually handle PINGs.
I'm doing
MQTTFrame encoded = new PINGREQ().encode();
connection.transport().offer(encoded);
However I'm seeing random disconnects from library.
What's the best method for this?
OR
Why the HeartbeatMonitor is not being fired when we use an AlaramManager to make device awake at ping interval!?
In android when in sleep mode, we need to manually handle PINGs. I'm doing
However I'm seeing random disconnects from library. What's the best method for this? OR Why the HeartbeatMonitor is not being fired when we use an AlaramManager to make device awake at ping interval!?