cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
794
Views
0
Helpful
3
Replies

Jabber Android app truncating XHTML-IM?

Ideal Networks
Level 1
Level 1

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!

3 Replies 3

npetrele
Cisco Employee
Cisco Employee

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. 

I suppose a strong possibility is that the Jabber Android clients simply do not support rendering HTML, by design/limitation...

Thanks, will look into it and report back if anything interesting...