AnsweredAssumed Answered

Need to show the delivery status like whatsapp.

Question asked by shree on Jun 13, 2017
Latest reply on Jul 3, 2017 by Paul Schaub

Hi everybody,


I need to show the delivery status based on mark (single and double dick) like whatsapp. I got receipt ID from server after message delivered to end user. There after i don't know what to do. Because, i'm not sending the any ID from sender side to end user. But i got receipt ID. i can't able guess which message  delivered to end user.

Ex. If i send 10 messages to end user. Each and every messages have unique ID, Even I too got 10 receipt ID. How do i  compare message ID and Receipt ID. Can anyone help me.


Here my code. Delivery Receipt:


DeliveryReceiptManager dm = DeliveryReceiptManager.getInstanceFor(connection);


dm.addReceiptReceivedListener(new ReceiptReceivedListener() {

   public void onReceiptReceived(final String fromid, final String toid, final String msgid, final Stanza packet) {


  Log.i("From jid ",fromid.toString());

  Log.i("To jid ",toid.toString());

  Log.i("Receipt id ",msgid.toString());

  Log.i("recipt ",packet.toString());





My Receipt id is:WJF2e-98