xmppframework

iOS XMPP group chat implementation

那年仲夏 提交于 2019-12-04 13:42:00
问题 I am trying to create chat room using robbiehanson XMPPframework. Since I didn't get any sample code or documentation, I made a try by myself to initiate a chat room as follows: XMPPRoomMemoryStorage *rosterstorage = [[XMPPRoomMemoryStorage alloc] init]; XMPPRoom *xmppRoom = [[XMPPRoom alloc] initWithRoomStorage:rosterstorage jid:[XMPPJID jidWithString:@"test@mycompany.com/room"] dispatchQueue:dispatch_get_main_queue()]; [xmppRoom configureRoomUsingOptions:nil]; [xmppRoom activate:

Login exception SASL authentication failed using mechanism DIGEST-MD5 asmack in android

只谈情不闲聊 提交于 2019-12-04 10:16:45
I m try to connect with Xmpp server,But i m getting exception Login exception SASL authentication failed using mechanism DIGEST-MD5 i use this code ,can any one help me,or code try { if (xmppConnection == null) { ConnectionConfiguration config = new ConnectionConfiguration( SERVER_HOST, SERVER_PORT, SERVICE_NAME); xmppConnection = new XMPPConnection(config); System.out.println("xmppConnection"+xmppConnection); } if (!xmppConnection.isConnected()) { xmppConnection.connect(); System.out.println("Connecting"); } System.out.println("facebook id get xmpp "+username); if (!xmppConnection

Send a message via XMPPFramework for iOS

為{幸葍}努か 提交于 2019-12-04 09:45:21
问题 How do I send a message through the XMPPFramework for objc and ios? Its really bugging me now. I need to build a custom method with some custom XML and send it to a specific JID. Any ideas? Thank you. 回答1: NSXMLElement *body = [NSXMLElement elementWithName:@"body"]; [body setStringValue:textvalue]; NSXMLElement *message = [NSXMLElement elementWithName:@"message"]; [message addAttributeWithName:@"type" stringValue:@"chat"]; [message addAttributeWithName:@"to" stringValue:[jid full]]; [message

Join an existing XMPP MUC Room with Owner Privileges using iOS Openfire and Robbie Hanson library

流过昼夜 提交于 2019-12-04 09:38:29
I am joining an existing MUC room using the next code: XMPPRoomMemoryStorage *roomStorage = [[XMPPRoomMemoryStorage alloc] init]; XMPPJID *roomJID = [XMPPJID jidWithString:@"newRoom5@conference.administrator"]; xmppRoom = [[XMPPRoom alloc] initWithRoomStorage:roomStorage jid:roomJID dispatchQueue:dispatch_get_main_queue()]; [xmppRoom activate:[self appDelegate].xmppStream]; [xmppRoom addDelegate:self delegateQueue:dispatch_get_main_queue()]; [xmppRoom joinRoomUsingNickname:[self appDelegate].xmppStream.myJID.user history:nil password:nil]; XMPPMUC * xmppMUC = [[XMPPMUC alloc]

Undefined symbols for architecture armv7 when adding CocoaAsyncSocket

♀尐吖头ヾ 提交于 2019-12-04 09:19:50
问题 I am trying to use XMPPFramework with an iOS5 project (ARC) under xcode 4.2.1 but I am facing this problem. Once I add CocoaAsyncSocket to my project as part of preparing my project to use XMPPFramework as in 1I get the following error. I have seen some other people having the "Undefined symbols for architecture armv7" but I did not find yet an answer to this particular issue I have at the moment. I have linked to the CFNetwork and marked the GCDAsyncSocket.m as non-ARC (-fno-objc-arc) but i

Disconnection of XMPP client while sending big size image, video and audio

六月ゝ 毕业季﹏ 提交于 2019-12-04 07:08:33
问题 I have implemented xmpp using robbiehanson xmpp example. I am able to chat and also able to send images. The images which i am sending are converted to nsdata and further converted to Base64String, and later sending the string with [self.xmppStream sendElement:message]; This way if the size of image is small i am able to send that instantly but if the size of images is bigger the two xmpp user gets disconnected and the file is not transferred. Same thing happens with video and audio. Though i

Xmpp FileTransnfer in Android giving 503-service unavailable Error

瘦欲@ 提交于 2019-12-03 21:41:37
Now am working with Xmpp file Transfer in Android.While am sending files it give a 503 service unavailable error. > 07-29 15:33:12.183: D/SMACK(22151): 03:33:12 PM SENT (1095973320): > <iq id="s9DTB-10" to="jithu4@jabber.org/Smack" > from="jithu1@jabber.org/Smack" type="set"><si > xmlns="http://jabber.org/protocol/si" id="jsi_6388535575928662640" > mime-type="image/jpeg" > profile="http://jabber.org/protocol/si/profile/file-transfer"><file > xmlns="http://jabber.org/protocol/si/profile/file-transfer" > name="IMG_20130715_115622_1445552069.jpg" size="2105955" > ><desc>test_file</desc></file>

How to handle MUC chat messages- messages duplicating

不羁岁月 提交于 2019-12-03 21:39:16
I have implemented one to one chat using XMPP framework It has extensive support in one to one chat. Message archiving and fetching is way simple. But i see, very difficulty in handling a group chat message saving and displaying. The sorting and predicates are failing. duplicate messages are shown. This is how i join a room before i fetch my already saved message) XMPPRoomCoreDataStorage *coreDataRoomStorage=[self appDelegate].xmppRoomCoreDataStorage; XMPPRoom *room=[[XMPPRoom alloc]initWithRoomStorage:coreDataRoomStorage jid:user.bareJid]; [room activate:[self appDelegate].xmppStream]; [room

XMPPFramework “typing..” status for message

这一生的挚爱 提交于 2019-12-03 21:02:20
I am using robbiehanson/XMPPFramework for my current project. How to get the message typing status using XMPPFramework? There XEP- 184 protocol but those are deprecated right now . Need assistance here for getting composing status in iOS . Regards, Bhat The most commonly used protocol for "contact is typing" notifications is XEP-0085: Chat State Notifications . As described in more detail there, the first message to a contact should contain an "active" state element (next to the <body/> element): <active xmlns='http://jabber.org/protocol/chatstates'/> If the contact responds with a chat state,

Options for real-time web notifications and updates using Comet/XMPP vs WebSocket technologies on a Microsoft stack?

泪湿孤枕 提交于 2019-12-03 19:28:32
问题 I am scoping out the architectural options for a project that will render live updates (like Facebook) of user activities - logins, photos, etc. Two main UI components of this are an auto-updating scrolling area where new notifications will be listed (photos, etc.), and a toolbar that will update with things like updated message counts, etc. The contenders for this are Jabber/Comet/XMPP-based and WebSocket technologies. Comet camp: Pokein WebSync WebSockets camp: Kaazing LightStreamer