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 received by the server and update my local DB. Please give me any idea how to do this.
I'm saving a message with chatId. So from which method of smack do I get this receipt message id?
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.
You have to enable stream management.
when you send out a mesage, you add an ack listener for that message, like this.
Now, inside updateMessageStatus(packet) method, you find message in your database by id (packet.getStanzaId()) and update status from "pending" to "sent".