How to get offline message from pubsub node in smack

I am using smack. How to get offline message from pubsub node? I tried using OfflineMessageManager to receive the message, but that did not work.

+3
source share
1 answer

First, was node configured to deliver messages to offline subscribers? If not, then they are not.

Is your server offline? Pubsub messages should not be different from any other offline message, so there is nothing special about how to receive them.

If you just want to receive messages that are in node and node is persistent, you can receive messages directly from node using

myLeafNode.getItems();
+1
source

All Articles