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
- I'm not getting any proper reference for integrate this protocol in my code.
- 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.
- I'm also check
MultiUserChatLightManagerbut this class is for Group chat but I need to first integrate Message broadcasting. - Is any change is required at ejabberd server side for implementing this protocol?
I'm not too much expert on XMPP.
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
serviceNameisbroadcastandserverNameis our server name send your xmpp message from your android client like thisfor other alternative and high customization in broadcasting message you can go for
XEP-0060: Publish-Subscribehere and here is the smack e.g