xmppframework

FileTransfer using XmppFrameWork in ios

强颜欢笑 提交于 2019-11-26 16:31:53
问题 i have implemented some code of file transfer by using this tutorial : Please Click Here. and the code which i am using : - (void)sendToOtherDevice:(NSData *)fileData receiverJid:(NSString *)receiverJid { XMPPJID *jid = [XMPPJID jidWithString:receiverJid]; XMPPSIFileTransfer *sifiletransfer = [[XMPPSIFileTransfer alloc] init]; [sifiletransfer initiateFileTransferTo:jid withData:fileData]; NSString *s = [NSString stringWithFormat:@"%@/spark",receiverJid]; NSString *jabbarID = [[[[self

XMPPFramework - How to create a MUC room and invite users?

邮差的信 提交于 2019-11-26 09:26:24
问题 I am using Robbiehanson\'s iOS XMPPFramework. I am trying to create a MUC room and invite a user to the group chat room but it is not working. I am using the following code: XMPPRoom *room = [[XMPPRoom alloc] initWithRoomName:@\"user101@conference.jabber.org/room\" nickName:@\"room\"]; [room createOrJoinRoom]; [room sendInstantRoomConfig]; [room setInvitedUser:@\"ABC@jabber.org\"]; [room activate:[self xmppStream]]; [room inviteUser:jid1 withMessage:@\"hello please join.\"]; [room sendMessage

XMPPFramework - Implement Group Chat (MUC)

橙三吉。 提交于 2019-11-26 07:24:11
问题 I am working on the iOS chat client. Can anyone please help me with the Multi-User Chat? I have implemented Robbiehanson\'s XMPPFramework. Can anyone please let me know how to get list of group and create a group in server with this framework? Thanks in advance. 回答1: to get a list of rooms: NSString* server = @"chat.shakespeare.lit"; //or whatever the server address for muc is XMPPJID *servrJID = [XMPPJID jidWithString:server]; XMPPIQ *iq = [XMPPIQ iqWithType:@"get" to:servJID]; [iq