powered by Jive Software

Adding "meta data" to Message Stanza

I have a simple chat app that is working fine. Now I want to add two things:

  1. Message attachment type (Image, Contact or Location)
  2. 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.

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.


I am sorry, I don’t have the time right now for a detailed answer. But maybe check out how a simple functionality like ‘chatstates’ are implemented in Smack:

1 Like

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