Paho MQTT Android service wake up activity

后端 未结 5 1987
独厮守ぢ
独厮守ぢ 2021-01-02 14:36

I am trying to use Paho Android MQTT library (downloaded from here). The sample service application works fine, the subscribe and the publish meth

5条回答
  •  春和景丽
    2021-01-02 15:09

    You should implement a background service see: http://developer.android.com/training/run-background-service/index.html

    Or depending on the use case you can implement push notifications in the server side and receive them once the client is not subscribed to the MQTT broker.

提交回复
热议问题