powered by Jive Software

Improve FileTransfer compatibility for macOS Message client App

So here at my company we use an Openfire Server, and our Windows employees use Spark, and our macOS ones use the native OS Message App since it is better integrated with the OS itself, for the most part they work great together, Whenever a Spark client sends a file to the macOS one it works nice, however when it comes to macOS sending messages to the Spark Client not so much.

Long story short, the Spark client accepts when the mac one sends Files like ZIP, and more obscure ones, however images don’t work, whenever a macOS user sends a message to the spark client, it comes out like a blank message, however the macOS client shows ‘Awaiting for X to accept the file.’ If they ZIP the image it works however it is a very boring step since most of the files sent are quick screen shots.

I suspect that this problem occurs because iMessage tries to format the message to be shown embedded on the chat screen, I believe that a quick tweak in the way this messages are received can fix this problem it would be so awesome.

I tried doing this myself however im not a very avid Java programmer and the project is much overwhelming if somebody knows where i could start tinkering to get this to work I would be glad too.

I have opened the debug tool and saw that whever i send an image this XML package is received.

<message to="amanda@servidorvm" from="joao.eduardo@servidorvm/MacBook Pro de João Eduardo" id="B09B987F-DED3-48F4-8302-C70F16E15A21" type="chat">
  <body/>
  <x xmlns="http://www.apple.com/xmpp/message-attachments"/>
  <html xmlns="http://jabber.org/protocol/xhtml-im">
    <body xmlns="http://www.w3.org/1999/xhtml">
      <img alt="11.png" src="message-attachments:1" width="469" height="303"/>
    </body>
  </html>
  <active xmlns="http://jabber.org/protocol/chatstates"/>
</message>

Bellow Im attaching soem Screen shots of a successful ZIP file transfer, and what shows in the other side whenever a pure image is sent.