xmppframework

Storing messages using XMPPFramework for ios?

谁都会走 提交于 2019-11-28 03:20:47
I'm not sure how to use the XMPPFramework's core data to store incoming messages. Does anyone have any tutorials on how to do this? I see User objects, which in turn can have many "resources". Is each message received supposed to be a new resource that I create and persist? I do not know what part is my responsibility and what part the framework provides regarding message history. I can intercept every incoming message. Then am I supposed to create and store each message inside a Messages table using core data? I'd have a Message Entity. And each XMPPUser would have an array of Message objects

XMPP Sending/Receving file in iphone sdk …?

孤街醉人 提交于 2019-11-27 20:20:11
How to send/receive file in iphone sdk using xmpp framework ? Currently i am using XEP-0065 classes, and use the following code: ObjTURNSocket = [[TURNSocket alloc] initWithStream:((TestAppDelegate*)[[UIApplication sharedApplication] delegate]).xmppStream toJID:chatuser.jid]; [ObjTURNSocket start:self]; And I am getting following response from the server: <iq type="error" id="AB2ED567-B97F-4DFE-B789-7731A617C239" to="kapil@testweb/6df6dc96" from="jabber.org"> <query xmlns="http://jabber.org/protocol/disco#items"/> <error code="404" type="cancel"> <remote-server-not-found xmlns="urn:ietf:params

FileTransfer using XmppFrameWork in ios

纵然是瞬间 提交于 2019-11-27 13:45:11
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 appDelegate] xmppStream] myJID] bare]; XMPPJID *senderjid = [XMPPJID jidWithString:jabbarID]; //[TURNSocket

How to get the message delivary status using XMPP framework

北城余情 提交于 2019-11-27 11:00:41
问题 I am using the XMPP Framework for chatting between the users , Chatting is happening perfectly .Now I need to show the message is delivered perfectly to both devices like (What's app messenger). I am not getting any tutorial to follow. Below code represents while we send message to the other user. //Sending the message to the other user NSXMLElement *body = [NSXMLElement elementWithName:@"body"]; [body setStringValue:txtChat.text]; NSXMLElement *message = [NSXMLElement elementWithName:@

Up to date instructions on how to install XMPPFramework manually?

不打扰是莪最后的温柔 提交于 2019-11-27 10:38:32
问题 I'm having a really tough time getting XMPPFramework to work. I've followed every direction written on the net, and XCode is not finding any of my XMPPFramework classes. Expected specifier-qualifier-list before 'XMPPStream' XMPP.h: No such file or directory XMPPRoster.h: No such file or directory I have XMPPFramework copied into my project's root directory. Why can't these files be seen? Is there something that I need to do under Header Search Paths or Library Search Paths? I've set those

XMPPFramework - Retrieve Archived Messages From Openfire Server

六眼飞鱼酱① 提交于 2019-11-27 07:01:24
I am developing a chat app for iPhone using XMPP and openfire server,OpenFire server is storing all the chat history between users but When I try to retrieve the chat history for a particular user I get only the date and the number of chat messages but not the actual text messages I have already installed open archive plugin for message archiving on openfire This is the stanza which I have passed to Openfire Server <iq type='get' id='pk1'> <list xmlns='urn:xmpp:archive' with='piyush@openfire'> <set xmlns='http://jabber.org/protocol/rsm'> <max>30</max> </set> </list> </iq> This is the result

Trouble creating xmpp muc room: Code 503 (service unavailable)

我怕爱的太早我们不能终老 提交于 2019-11-27 05:38:16
问题 My code to create a room: XMPPRoomCoreDataStorage *rosterstorage = [[XMPPRoomCoreDataStorage alloc] init]; XMPPRoom *xmppRoom = [[XMPPRoom alloc] initWithRoomStorage:rosterstorage jid:[XMPPJID jidWithString:@"groupchat@xmpp.getkismet.com/groupchat"] dispatchQueue:dispatch_get_main_queue()]; [xmppRoom activate:[[self appDelegate] xmppStream]]; if ([xmppRoom preJoinWithNickname:@"nameToCreateRoom"]) { NSLog(@"room created"); [xmppRoom joinRoomUsingNickname:self.userName history:nil]; }

XMPP Sending/Receving file in iphone sdk …?

无人久伴 提交于 2019-11-26 20:22:33
问题 How to send/receive file in iphone sdk using xmpp framework ? Currently i am using XEP-0065 classes, and use the following code: ObjTURNSocket = [[TURNSocket alloc] initWithStream:((TestAppDelegate*)[[UIApplication sharedApplication] delegate]).xmppStream toJID:chatuser.jid]; [ObjTURNSocket start:self]; And I am getting following response from the server: <iq type="error" id="AB2ED567-B97F-4DFE-B789-7731A617C239" to="kapil@testweb/6df6dc96" from="jabber.org"> <query xmlns="http://jabber.org

XMPPFramework - Implement Group Chat (MUC)

别说谁变了你拦得住时间么 提交于 2019-11-26 19:44:05
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. 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 addAttributeWithName:@"from" stringValue:[xmppStream myJID].full]; NSXMLElement *query = [NSXMLElement elementWithName

Retrieve history chat Openfire XMPP framework

[亡魂溺海] 提交于 2019-11-26 17:25:17
问题 I've developed a chat app using XMPPframwork of Robbie Hanson and Openfire server. I can chat one to one and chat group successfully. But when I get history of chat, I can't get whole history. I use XEP-0136 to archieve history: Send IQ: <iq type="get" id="hichic@macintosh"> <retrieve xmlns="urn:xmpp:archive" with="group12@conference.macintosh"> <set xmlns="http://jabber.org/protocol/rsm"> <max>100</max> </set> </retrieve> </iq> Receive: <iq type="result" id="hichic@macintosh" to="admin