renuka
renuka

Reputation: 29

android+smack+openfire

I have some doubts in getting the open server information to java program

  1. dispalying the already existing users to newly registred user
  2. add and delete from groups

Upvotes: 0

Views: 1124

Answers (2)

Naveen
Naveen

Reputation: 830

you can use "Registration Plugin" which can be found in plugins tab of open fire. Use that and change the registration settings to "add all registered users into a group"

Upvotes: 0

Andreas Dolk
Andreas Dolk

Reputation: 114767

For the first part: Usually, a user will only see his own contacts (in jabber terms: roster). If you maintain a xmpp server for a small community, you could implement a custom registration process:

  1. Create a group "allUsers" that will contain all users
  2. for each new user 2.1 create a new user account 2.2 add the user to that group

As a result, all members of the "allUser" group should be on the users roster

(Never did it myself and it may be necessary to implement this custom registration routine on the openfire server directly, because I fear, that the xmpp protocol does not support adding to and deleting from groups)

Upvotes: 1

Related Questions