AnsweredAssumed Answered

Get the real online state of user Smack 4.1.6

Question asked by Stefan hennemann on May 14, 2016
Latest reply on May 15, 2016 by CSH

Hhi folks,

 

I know it is possible to get the online/offline state from a jid with the roster with

 

XMPPConnection.getRoster().getPresence(jid).isAvailable();

 

But I guess this returns the state that this jid user has set in the roster. What about if the user don´t want to show that he is online and set his presence to offline? Is it possible to get the real state of availability no matter what this jid has set to his roster?

 

thanks to all suggestions....

Outcomes