I’m trying to send a chat message with extension like so
Message msg = new Message("firstname.lastname@example.org");
msg.addExtension(/* a form */);
Here is an example of the message
email@example.com fred@batcomputer/xfm_framework</ message>
The receiver is custom smack client. I use the following to listen to incoming messages
connection.addPacketListener(this, new PacketTypeFilter(Message.class));
However, the listener was never called. I tried using Spark as test client. Spark was able to receive the message. When I remove the extension, my custom Smack client is able to receive it. Am I using the correct listener?