I am working on IOS app having chat. I want to show online users only which are on server. Is their any way to do this by sending iq or Do we need to install some module on server to get the list of online user.
To access the most up-to-date ejabberd documentation, please visit docs.ejabberd.im »
I am working on IOS app having chat. I want to show online users only which are on server. Is their any way to do this by sending iq or Do we need to install some module on server to get the list of online user.
There are some ways for an
There are some ways for an admin to know which accounts are being used. But in general in Jabber/XMPP, users are not allowed to know if other users are online or not, as that would be a privacy leak.
But if you want your users to know which other users are online, see mod_shared_roster, specifically the @online@ thing mentioned in the documentation:
https://docs.ejabberd.im/admin/guide/configuration/#modsharedroster