Offline message count

Mohammed Azhar
Added almost 3 years ago

Hi all,

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.


Replies (3)

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.


Added by Mohammed Azhar almost 3 years ago

Thanks for the reply

Added by Wojciech Kapcia TigaseTeam almost 3 years ago

Tigase implements XEP-0013: Flexible Offline Message Retrieval which allows both retrieval of unread messages count as well as selective retrieval of such.