Alex Su
Alex Su

Reputation: 287

How to know if my message is successfully delivered to a XMPP server?

I am using Openfire and iOS XMPPFramework here. I know the existence of XEP-0184, but that's not what I am asking. I want to know if the Openfire server has successfully received my message (my message is successfully sent), so far when I send a message to the openfire server the server does not respond with anything, so I don't know if the message successfully went through or not. Can someone who is good at the XMPPFramework give me some example codes on:

  1. asking the server to return a receipt when the server receives the message
  2. process the receipt that's sent back from the server

My instinct told me the id attribute might be what I am looking for here, but I couldn't find relevant information online.

Thank you for your time.

Upvotes: 2

Views: 1919

Answers (1)

Flow
Flow

Reputation: 24053

The only standardized solution would be XEP-198: Stream Management, which provides stream level acknowledgements for stanzas between client and server (and s2s). Openfire does not (yet) support Stream Management: OF-446.

Other then that, XMPP has no (standardized) method of receipts send by a server to client once he has received the stanza. Note that this is different from XEP-184: Message Delivery Receipts, which provides end-to-end receipts.

Upvotes: 4

Related Questions