0

I have the same problem discussed in this Question and surprisingly solution doesn't work for me.

I am using ejabberd server and ios xmppframework. there are two clients, A and B.

When A and B are online, A can send message to B successfully. If B is offline, B can receive the message when B is online again. But when B is suddenly/unexpectedly lost connection, such as manually close wi-fi, the message sent by A is lost. B will never receive this message. I guess the reason is that B lost connection suddenly and the server still think B is online. Thus the offline message does work under this condition.

So my question is how to ensure the message that sent by A will be received by B? To ensure there is no messages lost.

Usman Javed
  • 2,437
  • 1
  • 17
  • 26

1 Answers1

0

As stated in the question you are referring to - you need to use Stream Management (XEP-0198). It provides a solution for the cases like your - when Internet Connection is bad and you can lost time to time your connection. There is no other solution for your issue - XEP-0198 is exactly what you need

Rubycon
  • 18,156
  • 10
  • 49
  • 70