How to send a system message?

Hi.

I want to broadcast a message to every online users with smack API.

Or send a server message without login.

Can anybody help me?

Thanks.

Hey jeaner,

XMPP does not allow to send messages without having previously logged into the server. You need to create a connection and authenticate with the server (or if allowed use an anonymous user).

In order to broadcast a message to all the users you will need to use a server extension for that. XMPP does not allow to broadcast messages to all the users so we added a plugin to Jive Messenger that allows you to broadcast messages to certain groups of users or to all the users in the system. However, you will need to be connected to a Jive Messenger server to have this functionality available.

Regards,

– Gato

Thanks a lot for your help -