title: XMPP How can I get the notification or an event when current user get offline?
body: <p>I have implemented chatting application using <code>XMPP</code> iOS Framework with OpenFire server.</p>
  
  <p>I just want get notification or an event when current user disconnect with XMPP. </p>
  
  <p>I implement delegate <code>XMPPReconnectDelegate</code> &amp; method  </p>
  
  <pre><code>- (void)xmppReconnect:(XMPPReconnect *)sender didDetectAccidentalDisconnect:(SCNetworkReachabilityFlags)connectionFlags
  </code></pre>
  
  <p>But problem is, It is not called in iOS 7.1 &amp; it is working in iOS 8.</p>
  
  <p>Is there any other method or delegate ?</p>
  
  <p>Thank you in advance.</p>