powered by Jive Software

Add custom element to <message


#1

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.


#2

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.