xmppframework

XMPPFramework: Trying to update nickname on VCard

[亡魂溺海] 提交于 2019-12-12 04:25:23
问题 This question is as simple as its title says: I'm trying to update a user nickname on his VCard but I cannot. I'm using this code: dispatch_queue_t queue = dispatch_queue_create("queue", DISPATCH_QUEUE_PRIORITY_DEFAULT); dispatch_async(queue, ^{ XMPPvCardTemp *myVcardTemp = [[[self appDelegate] xmppvCardTempModule] myvCardTemp]; [myVcardTemp setNickname:@"a_nickname"]; [[[self appDelegate] xmppvCardTempModule] updateMyvCardTemp:myVcardTemp]; }); I cannot imagine why this piece of code don't

TURN Connection using the iOS XMPPFramework and an OpenFire Server

你离开我真会死。 提交于 2019-12-12 02:35:40
问题 Problem : How can I get a successful TURN Connection using the iOS XMPPFramework and an OpenFire Server. I want to be able to send and recieve files. Note : The base of my code is from the following tutorial : http://mobile.tutsplus.com/tutorials/iphone/building-a-jabber-client-for-ios-server-setup/ Update 13th April 2012 : After more research, I think the real relevant code I need to display in this question is this ... This is where the TURNSocket attempts to connect XMPPJID *jid = [XMPPJID

ejabberd can not set nickname when add roster sometimes

你。 提交于 2019-12-12 02:14:00
问题 I am using iOS xmppframework and ejabberd as the xmpp server.When I add rosters with nickname, sometimes I can set the nick, sometimes I can not set nick. The packets I sent to the server are: 2015-07-03 10:19:24:144 pigai[36644:3a0b] The nick is songxiao 2015-07-03 10:19:24:144 pigai[36644:3a0b] SEND: <iq type="set" xmlns="jabber:client" id="roster-remotely-managed"><query xmlns="jabber:iq:roster"><item jid="xh1@192.168.1.67" name="songxiao"/></query></iq> 2015-07-03 10:19:24:144 pigai[36644

Joining XMPP MUC Room without invite - ejabberd

孤人 提交于 2019-12-12 01:47:47
问题 For persistent XMPP rooms, what is the way to make a client join back the room again if he / she has disconnected once? During testing, I find that simply sending back the presence stanza to the said room's JID does not make the client be available in the room again. Does re-entering a room happen only when a user has received an invite (and thus, in our case, if the user disconnects once, the user would need another invite to join the room?)? If that is the case, then what is the best way to

Connection disconnects with error “internal error” code=1 ErrorDomain=libxmlErrorDomain after XMPPframework sends auth to the server

依然范特西╮ 提交于 2019-12-12 00:50:52
问题 I am using XMPPFramework to connect to my xmpp server on local network ,it connects but as soon as it sends the auth packet and recieves challenge it disconnects with error : "internal error" code=1 ErrorDomain=libxmlErrorDomain. Basically it is not able to parse the challenge : 2013-03-08 15:56:41.890 iPhoneXMPP[23710:13703] Data to be parsed <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl"

Invalid parameter not satisfying: messageSenderId != nil

本小妞迷上赌 提交于 2019-12-11 19:36:54
问题 I integrated 'XBChatModule' Library from Cocoapods into my project. When I run the code for the first time, It crashed the app by throwing following error -[XBMessage messageHash]: unrecognized selector sent to instance and it got resolved by changing XBMessage.m file as below XBMessage.m - (NSUInteger)messageHash { return self.hash; } But this produces new issue saying Assertion failure in -[ChatMessagesController collectionView:cellForItemAtIndexPath:], /Users/Neelacharya/Harshit/LIve

XMPP change password in ios not working

自作多情 提交于 2019-12-11 17:58:13
问题 i am working on a chatting based app and using xmpp with my openfire server,I want to add change password functionality in ios.I have searched a lot fopr change password feature(xmpp) and have added a method for change password on xmpp,but failed to do so.I dont know and dont have any ideas also,Please help me,my code for change password is as below: - (void)goOnline { if (appDelegate.signInORnot == 1) { self.connectionStatus = OTRProtocolConnectionStatusConnected; NSLog(@"Account totaltrip..

User presence not receiving xmpp ios

痴心易碎 提交于 2019-12-11 16:28:29
问题 I have added user to my roster using this rest api http://192.168.1.39:9090/plugins/restapi/v1/users/hello/roster Header Authorization:FBeGHvBFSa7JsLL3 Content-Type:application/xml Body <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <rosterItem> <jid>vinod@192.168.1.39</jid> <nickname>vinod</nickname> <subscriptionType>3</subscriptionType> </rosterItem> user successfully added to roster but user presence not receiving in my iOS application. please help me for this , what i missing in

saving fetched XMPPframeWork vCards into CoreData in Swift4

只愿长相守 提交于 2019-12-11 15:15:42
问题 I was able to create and update a vCard using this code let xmppvCardStorage = XMPPvCardCoreDataStorage.sharedInstance() let xmppvCardTempModule = XMPPvCardTempModule.init(vCardStorage:xmppvCardStorage!) xmppvCardTempModule.activate(self.stream) xmppvCardTempModule.addDelegate(self, delegateQueue: DispatchQueue.main) let vCard = DDXMLElement(name: "vCard", xmlns: "vcard-temp") let vCardTemp = XMPPvCardTemp.vCardTemp(from: vCard) vCardTemp.nickname = "john" vCardTemp.jid = XMPPJID(string:

XMPPFramework - “not-authorized” error upon deleting a registered user account

烂漫一生 提交于 2019-12-11 12:33:24
问题 I want to delete an Openfire user which is currently connected using XMPP. I use the below code for deleting the user: - (void)DeleteAccountFromOpenfire { NSXMLElement *query = [NSXMLElement elementWithName:@"query" xmlns:@"'jabber:iq:register'"]; [query addChild:[NSXMLElement elementWithName:@"remove"]]; XMPPIQ *iq = [XMPPIQ iqWithType:@"set" elementID:@"unreg1"]; [iq addChild:query]; [[self xmppStream] sendElement:iq]; } But I get a not-authorized error from the server. How could I avoid