Does anybody know how to add a new user to a group? I can do this in the portal but the Smack api doesn’t seem to provide this. Am I missing something obvious? Any help is much appreciated.
I finally had some free time to revisit the issue in detail and I have figured a way to add users to existing groups. Hopefully this post will help other new users to the smack library seeing that the original post was viewed over 737 times. Note, my settings are Openfire 3.6.4 and Smack 3.1.0.
The first thing new users should do is query the system for supported commands. This is done through the AdHocCommandManager api.
Use AdHocCommandManager:discoverCommands(String jid). This returns the default list of supported commands for the connected XMPP server.
If you iterate over the returned Item objects you should get something similar