Project

General

Profile

Offline message count

Mohammed Azhar
Added over 2 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.

Thanks


Replies (3)

Added by Mauro Carrio over 2 years ago

Hi,

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.

Regards.

Added by Mohammed Azhar over 2 years ago

Thanks for the reply

Added by Wojciech Kapcia TigaseTeam over 2 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.

    (1-3/3)