To receive the incoming message from other users, you need to implement the event messageListener , which will be triggered whenever a new message is received. Once the message is received it automatically send the delivery status to the user if the logged-in user is online.
To send message read status, use the below method.
|JID of the To User||JID String||true|
|Unique Message ID||String||true|