I am using smack. How Do I fetch an offline message from a pubsub node? I tried using OfflineMessageManager to fetch the message, but it did not work.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First of all, was the node configured to deliver messages to offline subscribers? If not there are none to retrieve.
Does your server have offline messages turned on? The pubsub messages should be no different than any other offline message, so there is nothing special about how to retrieve them.
If you simply want to get the messages that are in the node, and the node is persistent, you can get messages directly from the node by using