08-03-2015 08:54 AM
Hi,
I am using the Smack library to compose the following message to send XHTML over Jabber to a client (line breaks added for clarity)
<message to='someuser@mydomain.com/jabber_1255782239' id='hp08j-29' type='chat'>
<thread>connect1150626784</thread>
<html xmlns='http://jabber.org/protocol/xhtml-im'>
<body xmlns='http://www.w3.org/1999/xhtml'>
<span>Example text</span>
</body>
</html>
<active xmlns='http://jabber.org/protocol/chatstates' />
</message>
It is received fine on Jabber Windows Clients but shows as an empty string on 3 Android devices using v11.0.1 of the app, which show the non-XHTML messages fine.
Grateful for any pointers!
08-03-2015 09:27 AM
Personally, I would try to reproduce this with something other than Smack, preferably a Cisco-supported API like Jabber SDK (CAXL). That would eliminate Smack as the potential problem, or identify Smack as the problem.
08-03-2015 09:32 AM
I suppose a strong possibility is that the Jabber Android clients simply do not support rendering HTML, by design/limitation...
08-07-2015 01:45 AM
Thanks, will look into it and report back if anything interesting...
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide