Quantcast
Channel: Ignite Realtime : Unanswered Discussions - Support
Viewing all articles
Browse latest Browse all 4979

enable last seen IQ

$
0
0

How can create this IQ using new Smack 4.1 API

<query xmlns=\"jabber:iq:privacy\"><list name=\"default\"><item action=\"allow\" order=\"1\"><presence-out/></item></list></query>

 

I was using the below code in asmack

IQ iq = new IQ(){    public String getChildElementXML() {        return "<query xmlns=\"jabber:iq:privacy\"><list name=\"default\"><item action=\"allow\" order=\"1\"><presence-out/></item></list></query>";    }
};

 

But I am facing difficulty in implementing this in Smack 4.1,
Any help would be appreciated.


Viewing all articles
Browse latest Browse all 4979

Trending Articles