Sending notifications


How can I send notifications like “composing message” to another user in MultiUserChat session.

Please guide.


Hey Vivek,

Smack has support for JEP-0022: Message Events. However, as far as I know that JEP was created for one-to-one chats. In MultiUserChat 2 room occupants may have a private conversation and for that case Message Events can be used with out problem.

For many-to-many chats you will need to make some changes to MessageEventManager since new Messages sent by that class will be of type CHAT and not GROUPCHAT so the room will reject them. Moreover, I’'m not sure of the semantic meaning of offline or display events when using Message Events in a multi user chat.


– Gato