If I am hosting a XMPP/Jabber based instant messaging server (TIMP) myself and also have an external java application that needs to get user presence information (e.g. online/offline status). Is it possible to get this information by using the SMACK library? If so how?
I realise that for privacy reasons a normal user should not be able to see another user’'s status unless that user appears in their roster. However in this case - is there no admin only methods that I can use - since I would own the server?!
I have read around and can’‘t seem to find a better solution than to have a “bot” user that all users would have to subscribe to in order to have their online status published. That way logging in as this “bot” user from my app, all the user’‘s I’‘m interested in would appear in it’‘s roster - and hence I would get their presence info. This does seem a bit overkill! From the user’'s point of view, they would have to explicitly subscribe to this “bot” - which would automatically accept them. There must be a better way!
Thanks and regards, Alex.