Currently a session is not retained when an MQTTClient object is reinitialized with the same client id and then connected to the broker. So for example, if I terminate my app, the session bound to the client object gets destroyed and I will no longer receive any offline messages.
Currently a session is not retained when an MQTTClient object is reinitialized with the same client id and then connected to the broker. So for example, if I terminate my app, the session bound to the client object gets destroyed and I will no longer receive any offline messages.
Is there any workaround for this ?