StompProtocolAndroid
StompProtocolAndroid copied to clipboard
Emit lifecycle event: CLOSED when using in foreground service
Hi I'm trying to use the library in a foreground service in Android 7.0 device. I have initialized and connected to the server successfully. But after sending one message, I got these logs and the connection closed automatically. I just want to maintain the connection in the service. How can I do that? Is that about the threads?
D/AbstractConnectionProvider: Emit lifecycle event: CLOSED
D/StompClient: Socket closed
D/StompClient: Stomp disconnected