0
votes

I'm working with one live chatting application via XMPP, Used aSmack as client and configured ejabberd for server end. I'm Implement one to one chat and it's working fantastic. Now I'm trying to integrate Broadcast message to Multiple user.

I'm learn XEP-0033 protocol because I know this protocol is responsible for message broadcasting and also getting full theoretically clarity on same Basically my question is

  1. I'm not getting any proper reference for integrate this protocol in my code.
  2. Is aSmack is provide a predefined stanza for this protocol or May I need to make custom stanza to integrating this protocol. If yes than please suggest any reference link for same.
  3. I'm also check MultiUserChatLightManager but this class is for Group chat but I need to first integrate Message broadcasting.
  4. Is any change is required at ejabberd server side for implementing this protocol?

I'm not too much expert on XMPP.

1

1 Answers

1
votes

i had the similar problem and was solved using this

upload a broadcast plugin to your openfire server.link is here and the read me link for the plugin here

for broadcasting the message follow the pattern to set To Id all@[serviceName].[serverName] where serviceName is broadcast and serverName is our server name send your xmpp message from your android client like this

  Message msg = new Message();
  msg.setBody(yourmessage);
  msg.setFrom(yourJid);
  msg.setTo("[email protected]");
  yourXmppConnection.sendStanza(msg)

for other alternative and high customization in broadcasting message you can go for XEP-0060: Publish-Subscribe here and here is the smack e.g