Closed raphasauer closed 1 year ago
This is a socket exception raised by the flutter runtime, the client has no control over this other than to report it so I guess its normal behaviour.
I know that some users disconnect the client when background is entered and reconnect when they come out of background.
I know that some users disconnect the client when background is entered and reconnect when they come out of background.
I think that this is the best approach. I will implement this on my app and post the snippet here for further reference. Thanks for the reply!
Hello! I am having a exception with the mqtt_client library that usually happen when I lock my phone's screen and keep it running on the background. Here are the logs:
I believe that the connection is being killed by Android and then the MQTT Server is not being able to ping the broker on my machine via the keep alive function (I could be totally wrong, though).
Is there a fix for this issue? Or it's just the expected behavior of the library in this situation?