xmppframework

How to create MultiUserChatRoom using XMPPFramework in iPhone

别说谁变了你拦得住时间么 提交于 2019-12-06 02:11:06
I am developing Chat Application using XMPPFramwwork in iPhone.I successfully completed one to one chat,now i want to develop multiuser chat in my application. I tried the fallowing code but any delegate methods of XMPPRoomDelegate are not called.how can i start to create chat room.When and how the roomdelegate methods get called....any reply thanks inadvance. XMPPStream *xmppStream = [[XMPPStream alloc] init]; XMPPRoomCoreDataStorage *xmppRoomStorage = [XMPPRoomCoreDataStorage sharedInstance]; XMPPJID *roomJID = [XMPPJID jidWithString:@"vvreddy50@gmail.com"]; xmppRoom = [[XMPPRoom alloc]

Need assistance regarding using the xep-0184

孤街浪徒 提交于 2019-12-05 22:18:57
I am using robbiehanson/XMPPFramework for my current project, I can send and receive messages to people in my roster, but now I have to implement message delivery status. I know the xep its 0184 and I have also included in my project, I am having difficulty utilizing it. I read in xep-0184 document that request element must also included in message, so here is my code: #import "XMPPMessage+XEP_0184.h" . . . NSXMLElement *body = [NSXMLElement elementWithName:@"body"]; [body setStringValue:messageStr]; NSXMLElement *request = [NSXMLElement elementWithName:@"request" xmlns:@"urn:xmpp:receipts"];

List of chat room members

萝らか妹 提交于 2019-12-05 21:20:01
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 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 XMPPRoom looks for items with an affiliation of "member". You can change the affiliation like so: [xmppRoom

- (void)chatDidReceiveMessage:(QBChatMessage *)message not working

≡放荡痞女 提交于 2019-12-05 18:51:55
I have integerated QuickBlox iOS sdk v2.5. I am sending messages to a particular and they are being sent to server but for receiving a message - (void)chatDidReceiveMessage:(QBChatMessage *)message is not getting called This is what I am doing to connect [[QBChat instance] addDelegate:self]; QBUser *chatUser=[QBUser new]; chatUser.ID=[[[NSUserDefaults standardUserDefaults] objectForKey:USERID] integerValue]; chatUser.password=[[NSUserDefaults standardUserDefaults] objectForKey:PASSWORD]; [[QBChat instance] connectWithUser:chatUser completion:nil]; For creating a chatDialog QBChatDialog

How to show Blurred image before downloading(like in whatsapp) in ios?

一世执手 提交于 2019-12-05 11:20:41
I am making a Chat application for image sending and downloading. I want to do some animation like in WhatsApp. So, how to show the blurred image? My image is downloaded from server. Please help me. Scale the image down to a very small size like say 8x8 pixels. Send that data to the client. It should not be more than 4 * 8 * 8 = 256 B or 0.25 KB in size, so sending it to the client will not be a problem no matter how slow the client's connection speed is. Then scale the received 8x8 image to the resolution of the preview box (e.g. 256x256). You shouldn't need to upsample the 8x8 image if the

Xmpp FileTransnfer in Android giving 503-service unavailable Error

别说谁变了你拦得住时间么 提交于 2019-12-05 07:12:38
问题 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

How to handle MUC chat messages- messages duplicating

强颜欢笑 提交于 2019-12-05 07:08:37
问题 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

XMPPFramework “typing..” status for message

非 Y 不嫁゛ 提交于 2019-12-05 04:21:27
问题 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 回答1: 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/>

File transfer using XMPP (Extension XEP-0065)

孤街浪徒 提交于 2019-12-04 21:17:03
Not sure why I am getting turn socket failed (turnSocketDidFail called). Anybody can help me in figure out this? Please point me what am I doing wrong here. I know there are lots of question like this and I have already checked all of these and from that I have taken little help already. One of client is Spark and other is simulator. Settings: Server: testXyz Senderjid: user1@testXyz Receiverjid: user2@testXyz XMPPJID *jid = [XMPPJID jidWithString:Receiverjid]; [TURNSocket setProxyCandidates:[NSArray arrayWithObjects:Receiverjid, nil]]; TURNSocket *turnSocket = [[TURNSocket alloc]

XMPPFramework - TURNSocket can't receive the data that sent by myself?

只愿长相守 提交于 2019-12-04 16:41:24
I used the openfire as the xmpp server, and want to transfer file via the Turnsocket. The openfire (local) config: xmpp.auth.anonymous true xmpp.domain local xmpp.enabled true xmpp.externalip proxy.local, 192.168.1.101, 127.0.0.1 xmpp.proxy.enabled true xmpp.proxy.port 7777 xmpp.proxy.transfer.required false xmpp.server.socket.active true xmpp.session.conflict.limit 0 xmpp.socket.ssl.active true I tested the file transfer in the local environment, one user is logged in by Simulator (Sender), the other user is logged in by Device (iPod, receiver). TURNSocket.m (both changed), change the proxy +