I'm using smack 4.1 in my application, i'm able to send invitations but I'm failing receiving them
In fact when debugging i was receiving the invitation in my ChatMessageListener()
,in the packet Extension i can get the whole invitation but i don't want to pares XML .
my InvitationLisenter()
is never called
final MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(connection);
manager.addInvitationListener(new InvitationListener() {
@Override
public void invitationReceived(XMPPConnection xmppConnection, MultiUserChat multiUserChat, String s, String s1, String s2, Message message) {
try {
multiUserChat.join(mUserName);
} catch (SmackException.NoResponseException e) {
e.printStackTrace();
} catch (XMPPException.XMPPErrorException e) {
e.printStackTrace();
} catch (SmackException.NotConnectedException e) {
e.printStackTrace();
}
}
});