Changed the app to use BOSH instead of direct XMPP connection.
It doesn't work though. Seems a Smack bug (?)