AnsweredAssumed Answered

XMPP on Android Stream Management and BOSH

Question asked by andrejvanderzee on Jan 17, 2015
Latest reply on Jan 18, 2015 by andrejvanderzee

Hi,

 

We are starting to write an XMPP chat app for Android. I managed to get the Smack 4.1 beta1 version up and running very quickly, enabling two people to chat. Because the app is running on mobile, the connection to the XMPP server are short-lived by nature. Happily I have read that beta1 includes the Stream Management extension.

 

Another extension that draw my attention is BOSH which uses XMPP over HTTP solving the issue of unreliable connections and also Firewalled TCP ports (because it uses 80 which is usually open). Smack supports BOSH according to this:

https://www.igniterealtime.org/builds/smack/docs/latest/documentation/extensions /index.html

 

My question is now what would be the best approach for Android? Should I use BOSH, Stream Management or both together (is that even possible)?

 

Thanks,
Andrej

Outcomes