powered by Jive Software

Autorise incomming buddyrequest

Hallo,

I have a second question about smack. How can I autorise incomming buddyreques? For example: If I register a new service(transport) the buddys from this roster must be autorised to add to buddylist.

Thanks for help.

Andre

I solved the at myself. I use the presence methode to autorise the buddys.

Andre

Hi I want to know How to autorise the incomming buddy request.Can u send me the code.And How i can handle subscriprtion request inorder to get presence

Can u plz send me the code if possible

Hi,

sorry for the late response.

The code:

Roster roster = conn.getRoster();

roster.setSubscriptionMode(Roster.SubscriptionMode.accept_all);

Andre

158984 schrieb:

andre123,

A new message was posted in the thread “Autorise incomming buddyrequest”:

http://www.igniterealtime.org/community/message/164000

Author : 158984

Profile : http://www.igniterealtime.org/community/people/158984

Message:
andreski.vcf (208 Bytes)