powered by Jive Software

Figuring out when a user is logged off


I’m trying to determine when a user has logged off and seem to be running into a wall. When a user has logged off and my presence listener is notified, I expect the users presence to be unavailable. Instead the Presence returned by roster.getPresence(entry.getUser()) has type “available” and mode “away”. The user is not logged in from anywhere else, so it’s not a case of there being multiple presences. The user truly should appear to be offline. But, to my users it appears as though the user is merely away from their computer, but logged in. What am I missing?



I’d start by launching both your local and remote endpoints with -Dsmack.debugEnabled=trueand verify what’s being sent and received over the wire - that should be able to narrow down where the problem is.