powered by Jive Software

Why getPresence always return unavailable?

Hello,

I use getPresence method to get user status and always get unavailable .

But I’'m sure the user is online at that time.

Who can tell me why?

I think you should use

presence.getMode() and presence.getType() to have the informations

getMode() will return available or away or unavailable

I use it in my program and it works

pay a closer look to the presence part in the Smack documentation and I think you’‘ll find what you’'re looking for !

good luck !