I\'m trying to make a chat application using XMPP. For this, I referred to this tutorial and successfully implemented it. But now I\'m unable to get that particular message is r
connection.setUseStreamManagement(true);
It'll enable stream management (XEP-198) on the client side.
http://xmpp.org/extensions/xep-0198.html#acking
NB: It'll only work if the server supports XEP-198.