how to get offline message in pubsub? using smack library. after searching i got answer from some where that using,
// Create a pubsub manager using an existing XMPPConnection PubSubManager mgr = PubSubManager.getInstanceFor(con); // Get the node LeafNode node = mgr.getNode("testNode"); List<? extends Item> items = node.getItems(100);
but node.getItems(100) returns last 100 messages, which can be online and offline too.
how to keep track of online and offline message in pubsub using smack?
is it possible to get unread message count in pubsub using smack? if yes then how to achieve it?
how to know that who(publisher) send this message in a node?
I just went through the documentation of smack and pubsub from here and here but didn’t find the solutions related to my queries. so can anyone help me to solve this? thanks.