title: Losing messages over lost connection xmpp
body: <p>i went through this question</p>
  
  <p><a href="https://stackoverflow.com/questions/9690020/lost-messages-over-xmpp-on-device-disconnected">Lost messages over XMPP on device disconnected</a></p>
  
  <p>but there is no answer.</p>
  
  <p>When a connection is lost due to some network issue then the server is not able to recognize it and keeps on sending messages to disconnected receiver which are permanently lost.</p>
  
  <p>I have a workaround in which i ping the client from server and when the client gets disconnected server is able to recognize it after 10 sec and save further messages in queue preventing them from being lost.</p>
  
  <p>my question is can 100% fail save message delivery be achieved by using some other way i know psi and many other xmpp client are doing it. </p>
  
  <p>on ios side i am using xmppframework</p>