I am creating chatting application like Whatsapp.
I have successfully write the functionality of Text chat, Image, Audio, Video Transfer. Now I am creating
If you set a breakpoint in file XMPPMUC.m line 317
- (void)xmppStream:(XMPPStream *)sender didReceiveMessage:(XMPPMessage *)message
Is that method being called when an invitation is sent to your user? If so keep debugging and check if line 382 is being executed.
That line has this:
[multicastDelegate xmppMUC:self roomJID:roomJID didReceiveInvitation:message];
Problem was in this code. Actually i was sending the bare id every time when i was inviting any user.
func xmppRoomDidJoin(sender: XMPPRoom!) {
sender.fetchConfigurationForm()
for JID in membersToInvite! {
sender.editRoomPrivileges([XMPPRoom.itemWithAffiliation("member", jid: XMPPJID.jidWithString(JID))])
sender.inviteUser(XMPPJID.jidWithString(JID), withMessage: "THIS IS GROUP MESSAGE")
}
}
BUT TO INVITE ANY USER YOU HAVE TO USE FULL ID.
For those who dont know
BareID = username@domain FullID = username@domain/resource
To resolve this
I hardcode the resource = APPNAME everywhere in JIDs in whole app.