By the time I can handle this message it seems to strip the msgid value id away. I know that it isn’t good practice to have it there but the server we are connecting to has it set up that way and there’s nothing I can do about it.
I’ve used the different providers but there doesn’t seem to be one that can handle this situation. Is there any way for me to be able to parse out this value?
You probably have to fork Smack and modify the Message parsing logic to deserialize and take the msgid value in consideration.
Since the msgid is not compliant to the XMPP specification Smack will not parse it for you. However I’d strongly advise you to stay protocol compliant and use either normal message ids, Stable and Unique Stanza IDs (also supported by Smack ) or implement your own extension element, eg.
Although I really recommend putting custom data in custom extension elements, and not in stanza attributes.
I wish I could add it to an extension but can’t. I don’t have control over the stanzas I get back and this is just one of the hoops I’m having to jump through. It would save me from having to make many unnecessary API calls if that PR would get merged in .