How to get the status of a read / unread message using the XMPP Smack API?

I am using smack api for an android application. I have successfully completed the transmission of text messages and images. But I don’t understand how I can get the status of a message, is it either read by the end user or not? Please give me an example link or give me a code snippet so that I can do this.

I am currently using the following code to send a message.

Message msg = new Message(to, Message.Type.chat); Log.d("=====SEND MSG====>>", msgText); msg.setBody(msgText); connection.sendPacket(msg); 

Thanks in advance.

+6
source share

Source: https://habr.com/ru/post/1012247/


All Articles