Presence of any user

Hi all, currently we are using ejabberd 17.04 and we are facing an issue related to Presence of users. Our ejabberd server doesn't mark the user as offline as soon as he/she disconnects the xmpp stream.
Consider the following scenario :
User A and user B are chatting with each other and both got the available presence of each other as soon as they are authenticated by our xmpp server. Suddenly user B went offline (Closed the app/network disconnection/any other issue) now for user A, user B is still online because user A have not received the unavailable presence of user B.

User A does receive the Unavailable presence but only after the mod_ping timeout interval.

Please let us know how to fetch the unavailable presence as soon as the user disconnects the stream.
Thanks.

Are you using a well known

Are you using a well known XMPP client/library, or a less used client? In the second case, try with a popular client like Psi, Gajim.. does it work correctly then, or there's still the same problem?

We had tested this scenario

We had tested this scenario with Chatsecure(iOS app, available on Appstore) and Messages(inbuilt mac app) and we noticed that the issue was still happening. Chatsecure was going offline(Using network disconnection) during the chat but its presence was not updating on Messages(mac app).Online availability presence is still an issue we are facing. Please comment on the problem.

Please provide any update on

Please provide any update on the above issue. Any help will be appreciated.

Syndicate content