xmppframework

XMPPFramework - How to create a group chat room?

有些话、适合烂在心里 提交于 2019-12-19 04:05:00
问题 I have an application which I am using for one-to-one chat. Now I need to implement group chat. I know it is possible with XMPPFramework and there is a class called XMPPRoom which we can use to create a room or join a room. But I am unable to implement that in my project. Can anyone please provide me some ideas, suggestions and if possible a sample application. Thanks in advance :) 回答1: here you have a script that allows to connect to a room [xmppRoom activate:[self xmppStream]]; [xmppRoom

XMPPFramework - Create an XMPPRoom

ⅰ亾dé卋堺 提交于 2019-12-18 07:20:09
问题 I have been trying to create a XMPPRoom using the below mentioned code, i have looked at various examples online however when i use this code, the delegate xmppRoomDidCreate or xmppRoomDidJoin delegates doesn't get called. I'm not sure what am i doing wrong here? PS: the delegates of xmppStream do get called, it gets connected and authorized however, the issue is XMPPRoom delegates... - (void)createChatRoom { NSString *jabberID = @"abcxyz@testservice.com"; self.xmppStream.hostName = @

XMPPFramework - Create an XMPPRoom

旧城冷巷雨未停 提交于 2019-12-18 07:20:07
问题 I have been trying to create a XMPPRoom using the below mentioned code, i have looked at various examples online however when i use this code, the delegate xmppRoomDidCreate or xmppRoomDidJoin delegates doesn't get called. I'm not sure what am i doing wrong here? PS: the delegates of xmppStream do get called, it gets connected and authorized however, the issue is XMPPRoom delegates... - (void)createChatRoom { NSString *jabberID = @"abcxyz@testservice.com"; self.xmppStream.hostName = @

Build a chat application in ios using XMPP [closed]

[亡魂溺海] 提交于 2019-12-17 23:17:55
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I am trying to build a chat application in ios. I came across XMPP for ios. I am bit confused on how to move forward. Here are my doubts: Do I need to create an XMPP server to implement this application? Or are there any existing servers/services which can be used for the same

Accepting chatroom invitation

南楼画角 提交于 2019-12-17 22:37:22
问题 I'm able to create a MUC using XMPPFramework and send user invitation requests to join that room by using the code below. // Creating AppDelegate *dele =(AppDelegate *) [[UIApplication sharedApplication]delegate]; xmppRoom = [[XMPPRoom alloc] initWithRoomStorage:dele jid:[XMPPJID jidWithString:self.roomName] dispatchQueue:dispatch_get_main_queue()]; [xmppRoom addDelegate:dele delegateQueue:dispatch_get_main_queue()]; [xmppRoom activate:dele.xmppStream]; [xmppRoom joinRoomUsingNickname:self

How to list only online users on facebook with xmpp framework

只愿长相守 提交于 2019-12-17 22:13:07
问题 I have integrated xmpp in my app and able to list all the users in a table view, but I only want to display the online users and then want to implement the feature to send and recieve messages to my online friends... Please suggest me some helpful code... Here is my code, executed after facebook login. - (void)fbDidLogin { NSLog(@"logged in....................."); [appDelegate.facebook requestWithGraphPath:@"me" andDelegate:self]; DDLogVerbose(@"%s accessToken: %@ expirationDate: %@",__PRETTY

Storing messages using XMPPFramework for ios?

一曲冷凌霜 提交于 2019-12-17 17:26:49
问题 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

XMPPFramework - Retrieve Archived Messages From Openfire Server

◇◆丶佛笑我妖孽 提交于 2019-12-17 08:54:11
问题 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'

Enable BOSH services in XMPP IOS framework (XMPPFramework) to create chat based app

心不动则不痛 提交于 2019-12-14 00:48:02
问题 I have implemented Chat based application. I can able to do many functionality with https://github.com/robbiehanson/XMPPFramework library. It is very good library. But after some days my server side guys included bash services in server. My server side guys implementing xmpp using Strophe.js. And they are using following code to enable BOSH service while connecting. BOSH_SERVICE = "http://host.com:5280/http-bind"; new Strophe.Connection(BOSH_SERVICE); Now they told me enable BASH service in

Saving XMPPMessage in CoreData in XMPPFrameWork ios

帅比萌擦擦* 提交于 2019-12-13 16:27:03
问题 I am working on a chat application and using xmppframework .Now there is a need for storing message in a persistent storage. Can anyone tell me how can i store and retrieve message from CoreData in IOS. 回答1: Since you're using github/robbiehanson/XMPPFramework, it's easy to get both your incoming and outgoing message stored during initializing: //this code init your XMPPStream xmppStream = [[XMPPStream alloc]init]; [xmppStream addDelegate:self delegateQueue:dispatch_get_main_queue()];