oranje
1
i use smack API create a new account to jive messenger 2.2.1
and now , i want make the user who created just now send a presence(subscribed) to everyone in server?
i wanna everyone in server can see both when create a new account though smack API.
help !
You might want to use Jive Messenger which has managed group functionality.
Presence p = new Presence(Presence.Type.subscribed);
p.setTo("someone@domain.com/resource");
p.setFrom("somebody@domain.com/resource");
/code
oranje
5
but , can i send to everyone ?
Check the broadcast plugin.
oranje
8
ps:broadcast just only send message to online user.
how can i send a presence(type=subscribed) to all users include offline users?
This sounds like a group roster activity. What’‘s the use case for such functionality, just so I understand what you’'re looking to do.
Noah