Can anyone help me … I am using smack 4.3.1and I want to add custom element in <message .How can I do that ? I used StandardExtensionElement class but the element not added !!
This is my code:
StandardExtensionElement extRead2 = StandardExtensionElement.builder(
“NameSpace”, “urn:xmpp:rokayah”)
.addElement(“myElement” , “true”)
.build();
message.addExtension(extRead2);
chat.send(message);
Thanks in advance.