Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XMPP How can I get the notification or an event when current user get offline?

I have implemented chatting application using XMPP iOS Framework with OpenFire server.

I just want get notification or an event when current user disconnect with XMPP.

I implement delegate XMPPReconnectDelegate & method

- (void)xmppReconnect:(XMPPReconnect *)sender didDetectAccidentalDisconnect:(SCNetworkReachabilityFlags)connectionFlags

But problem is, It is not called in iOS 7.1 & it is working in iOS 8.

Is there any other method or delegate ?

Thank you in advance.

like image 350
Bhushan Vaidya Avatar asked May 14 '15 06:05

Bhushan Vaidya


1 Answers

Following method too will call when user disconnect from XMPP Server.

  • (void)xmppStreamDidDisconnect:(XMPPStream *)sender withError:(NSError *)error {

}

like image 170
Tarun Khosla Avatar answered Oct 06 '22 23:10

Tarun Khosla