powered by Jive Software

Invitation Listener not working smack 4.2

Using:

  1. XMPP
  2. Smack 4.2
  3. Openfire server

Send Invitation code:

 muc.invite(userId +"@" +XMPP.getInstance().HOST + "/Smack", "Meet me in this excellent room");

Invitation listener code:

MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(connection); manager.addInvitationListener(new InvitationListener() { @Override public void invitationReceived(XMPPConnection xmppConnection, MultiUserChat muc, String inviter, String reason, String password, Message message) { try { muc.join(nickname); } catch (SmackException.NoResponseException e) { e.printStackTrace(); } catch (XMPPException.XMPPErrorException e) { e.printStackTrace(); } catch (SmackException.NotConnectedException e) { e.printStackTrace(); } } });

1 Like

The truth does not work!
I send an invite from Spark to my Android client, the logs are empty.
and it is not clear whether OpenFire does not send invites either Spark does not send invites to the server

I tried these three more options:

Help, please.

Guys, help please!!!