Hi,
I have a simple chat app that is working fine. Now I want to add two things:
- Message attachment type (Image, Contact or Location)
- attachment data (JSON data)
After reading, it seems Extension is the way to go. But I cannot find any tutorial or documentation that shows how to do that.
All I could find is JavaDocs like this one, which is not useful for beginners like me.
https://download.igniterealtime.org/smack/dailybuilds/javadoc/org/jivesoftware/smack/packet/XmlElement.html
Is there any other way or documentation for extension?
Basically I want to attach type and attachment payload when sending a message and retrieve them at the receiving end.
TIA