I would like to know how many offline messages are pending. I am using Smack 2.1/Jive 2.2.2.
So I tried:
XMPPConnection tempConn = new XMPPConnection(host);
OfflineMessageManager oMgr = new OfflineMessageManager( tempConn );
It dies of NullPointerException in supportFlexibleRetrieval OfflineMessageManager.java:80 ServiceDiscoveryManager.getInstanceFor(connection) is null.
Is this the right way to use the OfflineManager? Any reason why there is no ServiceDiscoverManager being returned?