Offline message count
In tigase is it possible to get the offline message count for a user. Also get the unread message count.
Is there any way i can implement this from the server end.
Added by Mauro Carrio almost 3 years ago
I tell you what I did to achieve the offline message count. We needed to send in the push message to mobile devices the offline messages count, only for iOS in order to show it in the app icon.
I have a plugin responsible for listening all the incoming messages, and if the recipient is offline it starts my push message service and before that with an adhoc query it counts in the database the offline messages.
In my analysis that was the best option, maybe someone has a better idea.