Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
amerts #1
Member since Oct 2019 · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: Enable message acknowledgment
Hi,

I'm working on implementing a message receiving acknowledgment for the chat in Unity project. The problem is when user A sends a message to user B, user B will receive this message only when he is online or offline (when he becomes online). But if user B is disconnected, because of WIFI drop or any other reason, he won't receive the message, even after disconnect. So I decided to use XEP-0115 and XEP-0184, to fix this issue.

When I init XmppClient, I set the following flags:
   Client.StreamResumption = true;
   Client.StreamManagement = true;

And call RequestReceipt when I send a message
   message.RequestReceipt();

Is it correct?

When I receive a message, there is  <unreliable server="my_server" id="MX_26" xmlns="urn:xmpp:receipts" /> tag
<message to="jid_to" from="jid_from" id="MX_26" xmlns="jabber:client">
    <unreliable server="my_server" id="MX_26" xmlns="urn:xmpp:receipts" />
</message>

As far as I understood it's an issue with XEP-0115 Entity Compatibility and the documentation says "Lack of ack support: The server says the receiver does not support ack, using the same message id attribute"

Please can you guide me on how to fix it?
Avatar
Alex #2
Member since Feb 2003 · 4375 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello amerts,

I think you are mixing many extensions here.
Also I don't know what this xml node means:
  1. <unreliable server="my_server" id="MX_26" xmlns="urn:xmpp:receipts" />

Are you sure that you are receiving this? Can you attach the full log?

  • Are you sending messages to full or bare Jids?
  • Does the sender get any error messages back?
  • If the user is offline then the message goes to the offline store and gets delivered when he comes online the next time

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS