The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by marcoe08]

I would like to know the presence status of a user but without being
subscribed to his roster. Also, I don't want this user to be subscribed to my
roster and I don't want to use groups. Is there a way to do this?

Thanks,
Marco Escobedo
import-bot (20211) [Avatar] Offline
#2
Re: user presence
[Originally posted by iainshigeoka]

> I would like to know the presence status of a user but without being
> subscribed to his roster. Also, I don't want this user to be subscribed to my
> roster and I don't want to use groups. Is there a way to do this?

There is no compliant way to do this. Of course you can always modify your
server to provide this information via some proprietary iq protocol. However
there are important privacy issues involved in doing so (and this is the
reason that there is no compliant way to do it).

Basically, this capability allows you to stalk someone without their
knowledge. Knowing someone's presence information without permission is a
severe breach of privacy. Imagine the evil that could be done if anyone can
anonymously snoop your online presence.

I don't know of any widely released Jabber servers that support this sort of
behavior. So if you want to do it from the client side it is almost
impossible without hacking the server or the Jabber packets while they travel
over the network (so called man-in-the-middle attacks).

I would imagine you want to do something legitimate though. If you describe
the application we might be able to figure out a viable way to do it that
doesn't violate the user's privacy.

-iain