xmppframework

XMPPFramework - How to register a new user account

我与影子孤独终老i 提交于 2019-12-10 20:32:21
问题 I'm trying to use XMPPFramework to connect to an Openfire server and create a new user account. If I am already logged in as a different user, this code will create a new user account: NSXMLElement *query = [NSXMLElement elementWithName:@"query" xmlns:@"jabber:iq:register"]; [query addChild:[NSXMLElement elementWithName:@"username" stringValue:userName]]; [query addChild:[NSXMLElement elementWithName:@"password" stringValue:pswd]]; NSXMLElement *iq = [NSXMLElement elementWithName:@"iq"]; [iq

Working In Background Mode in XMPP

北城以北 提交于 2019-12-10 13:44:00
问题 I am Working On XMPP. I want to get notification in background mode. And I implement this things also , - (void)xmppStream:(XMPPStream *)sender socketWillConnect:(GCDAsyncSocket *)socket { // Tell the socket to stay around if the app goes to the background (only works on apps with the VoIP background flag set) [socket performBlock:^{ [socket enableBackgroundingOnSocket]; }]; } in my code i set VOIP flag in background modes of app plist file. In this mode my app can run in the background

how to implement google chat in iphone app

风格不统一 提交于 2019-12-10 11:47:24
问题 i have searched a lot on the web but can not find the actual sample source code that can help me to get started for google chat implementation , the sample code provided with the xmpp framework also does not tell clearly about it, as it have a sample project of Mac desktop application. I have been able to show all my friends who are online/ofline/away with the help of sample project(iphoneXmpp) which is provided in the xmppframework, but it also doest tell anything about how to initiate a

How to Retrieve list of members chat room in using XMPP framework?

℡╲_俬逩灬. 提交于 2019-12-10 10:49:51
问题 How can I retrieve the list of members of a chat room in using XMPP framework? I tried using: - (void)xmppRoom:(XMPPRoom *)sender didFetchMembersList:(NSArray *)items But it returns an empty array. Any one please help me? 回答1: when you joined the room delegate xmpproom delegate will call so after that return following code. -(void)xmppRoomDidJoin:(XMPPRoom *)sender { DDLogInfo(@"joined room"); [sender fetchMembersList]; } after that it calls following delegate method. -(void)xmppRoom:

List of chat room members

馋奶兔 提交于 2019-12-10 10:06:03
问题 How can I retrieve the list of members of a chat room in using XMPP framework ? I tried using: - (void)xmppRoom:(XMPPRoom *)sender didFetchMembersList:(NSArray *)items But it returns an empty array 回答1: This question is old but I recently encountered this exact issue ( xmppRoom:didFetchMembersList: is passed an empty array). In my case the problem was that when users got invited to the room they would have a role of "participant" and an affiliation of "none". The fetchMembersList method in

iOS的xmppframework简介

喜欢而已 提交于 2019-12-09 18:44:06
由于博客迁移至 www.coderyi.com ,文章请看 http://www.coderyi.com/archives/436 1登录和好友上下线 1.1XMPP中常用对象们 XMPPStream:xmpp基础服务类 XMPPRoster:好友列表类 XMPPRosterCoreDataStorage:好友列表(用户账号)在core data中的操作类 XMPPvCardCoreDataStorage:好友名片(昵称,签名,性别,年龄等信息)在core data中的操作类 XMPPvCardTemp:好友名片实体类,从数据库里取出来的都是它 xmppvCardAvatarModule:好友头像 XMPPReconnect:如果失去连接,自动重连 XMPPRoom:提供多用户聊天支持 XMPPPubSub:发布订阅 1.2登录操作,也就是连接xmpp服务器 - (void)connect { if (self.xmppStream == nil) { self.xmppStream = [[XMPPStream alloc] init]; [self.xmppStream addDelegate:self delegateQueue:dispatch_get_main_queue()]; } if (![self.xmppStream isConnected]) {

IOS Chat application using XMPP Protocol (ejabberd) Room chat issue

瘦欲@ 提交于 2019-12-08 15:29:32
I am developing an IOS Chat application using XMPP Protocol(ejabberd). My chat room is created at my server, it return roomID to me. I am facing an issue in room/group chat. When i am sending a single message it is repeating more than once like 3 to 4 times.How to fix this. My code is here XMPPJID *roomJID = [XMPPJID jidWithString:[roomDict objectForKey:KEY_group_id]]; XMPPRoom *xmppRoom = [[XMPPRoom alloc] initWithRoomStorage:xmppRoomCoreDataStorage jid:roomJID dispatchQueue:dispatch_get_main_queue()]; [xmppRoom activate:[ChatHandler sharedInstance].xmppStream]; [xmppRoom addDelegate:self

where do we find XMPP framework for iphone?

余生颓废 提交于 2019-12-08 14:20:00
问题 I want to develop an chat application, in which I successfully added files of DDXML, DDXMLElement, DXMLElementAddition etc., now I need to add XMPP framework files and its libraries, where do i find these files, is there any open source of these files? I checked the site http://code.google.com/p/xmppframework/wiki/iPhone in which they mentioned which files to be added, but I didnt find those files to include in my project, if anyone knows please tell me.. Thans in advance... 回答1: Do you mean

XMPPFramework - XEP-0048: Bookmark Storage

*爱你&永不变心* 提交于 2019-12-08 11:06:55
问题 In my app, I have implemented creating XMPPRoom and inviting users. Now, I am searching for a way to store these groups (my created or the groups i have been invited to) so that i can easily retrieve it back in my app when I want. I came across bookmark XEP-0048 however, I can't find any example of using this online. Has anyone used this before? Can you please share some examples? http://www.xmpp.org/extensions/attic/xep-0048-1.0.html Ahmad 回答1: According to XEP-0048: Bookmarks, to upload

XMPPFramework - How to transfer image from one device to another?

早过忘川 提交于 2019-12-08 10:38:24
问题 I have made one-to-one chat using XMPP protocol. Now, I would like to send image and video in my application. I researched about the file transfer but I didn't find a solution. I have also used the code below for Socket connection. Please advice me on how I can go about doing this. [TURNSocket setProxyCandidates:@[@"MyserverHost-desktop"]]; XMPPJID *jid = [XMPPJID jidWithString:@"1254225445@MyserverHost-desktop"]; TURNSocket *turnSocket = [[TURNSocket alloc] initWithStream:[[self appDelegate