Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] Android MQTT service disconnection issue with QoS=1 and RabbitMQ server

I am trying to implement a push notification service for Android clients. The server is RabbitMQ with the MQTT adapter. The client on Android is of course, Paho Java client. The server side is Paho in Python sendin QoS 1 messages.

I couldn't get the connection to work reliably. Every now and then, the connection times out and the client is disconnected. In the RabbitMQ console, I can see that there are no active consumers listening to the topic. The Android client doesn't receive messages post that, until you restart the app, and hence the service. In a real world scenario, I can't expect customers to reopen the app everytime to get the notifications.

Right now, I am having a keepalive duration of 120s, which improved the performance of delivery from when the value was 60 s, but only slightly.

Are there any recommendations as to how I should tune my connections to make them more reliable?

--
Milind Utsav
+91-9742565861 (M)

Back to the top