I am using openfire for chat application in iOs and php website. and everything is working fine.
I have also implemented push notifications when opponent user is offline and you are sending a message to that user (in short push notification for offline message). I have implemented above stuff which is available here : Openfire offline notification through PHP
Now, client asks me to implement one more feature which includes :
- Send mail to admin when any user goes offline.
But now there is no any hook available to track user status. So how to implement the same ?
What I tried
I also tried one trick in which I am sending broadcast message to all users and if any user is offile then my CallbackOnOffline plugin will invoke, but here its not sending broadcast message to offline users.