xmppframework

creating chat room in QuickBlox

瘦欲@ 提交于 2019-12-23 04:24:37
问题 I am trying to create a chat room in QuickBlox using my iOS app. [[QBChat instance] createPrivateRoomWithName:@"My Room"]; - (void)createPrivateRoomWithName:(QBChatRoom*)room{ NSLog(@"Private room %@ was created", room.name); // Add users to this room NSNumber *anny = [NSNumber numberWithInt:300]; NSNumber *jim = [NSNumber numberWithInt:357]; NSArray *users = [NSArray arrayWithObjects:anny, jim, nil]; [[QBChat instance] addUsers:users toRoom:room]; } but after using this code my application

how to handle Decline Action on XMPP Framework - Objective C

与世无争的帅哥 提交于 2019-12-23 01:52:34
问题 I have implemented group chat using XMPP Framwork . I am able to connect, send and receive messages between both parties. But their is an issue in getting the status when and Agent on other side Decline my request. None of delegate is calling when Agent Decline the request. Here is my code. - (void)setupStream { _xmppStream = [[XMPPStream alloc] init]; [_xmppStream addDelegate:self delegateQueue:dispatch_get_main_queue()]; [_xmppStream setHostName:kChatUrl]; [_xmppStream setHostPort:5222];

XMPPFramework - Upload Profile or Avatar Image

好久不见. 提交于 2019-12-21 17:12:06
问题 I am working on the chat app in which I have used the xmpp framework. I am able to send or receive the messages through xmpp. But when I tried to upload the user profile or avatar image with the following code, didn't get success. NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:stringPath]]; UIImage *tmpImage = [[UIImage alloc] initWithData:data]; UIImageView *thumbimage; thumbimage.image = tmpImage; NSData *imageData1 = UIImageJPEGRepresentation(thumbimage.image,0.5);

Accept buddy request in xmpp client iphone

你。 提交于 2019-12-21 02:46:17
问题 I am developing an xmpp client for iphone. i am able to send and receive message. I want to accept the buddy request automatically without prompting to user. In which function will i receive request. Please give me any hints. Thanks in advance. 回答1: Alright, I have got a perfect answer for you! Here is the code: - (void)xmppStream:(XMPPStream *)sender didReceivePresence:(XMPPPresence *)presence { // a buddy went offline/online NSString *presenceType = [presence type]; // online/offline

how to check received message is read or unread in xmpp framework in ios

感情迁移 提交于 2019-12-20 09:38:18
问题 i am developing chat application using xmppframework and i am successfully completed the send and receive message , but 1) if i am chat with user A and user B send me message the how can i identify the user B send me the message. (i already maintain the messages in core data so message will be saved) 2) how can i identify the received message is read or unread NOTE : for message saving i used xmppMessageArchivingStorage = [XMPPMessageArchivingCoreDataStorage sharedInstance];

service unavailable error in openfire message archive management

不想你离开。 提交于 2019-12-20 06:44:10
问题 I am using monitoring plugin 1.6.0 with openfire 4.2.0. Following is the screenshot of archive settings on openfire admin Console. also following is the screenshot of plugins I am using with this. My Issue as you can see the plugin is installed. but when I am trying to fetch chat history with following code : I am getting service unavailable response. func fetchChatHistoryFromServer(completionHandler completion: @escaping FetchChatHistoryCompletionHandler) { let iq = DDXMLElement(name: "iq")

Get XMPP Chat History OpenFire

跟風遠走 提交于 2019-12-20 04:37:11
问题 I am trying to implement a chat application using XMPPFramework in iOS, using OpenFire server. My chat is working fine, I am trying to retrieve chat history from server. Ofcourse I have enabled Message Archiving on Server. This is the Request I am sending <iq type="get"> <retrieve xmlns="urn:xmpp:archive" with="dev_user80@mydomain"> <set xmlns="http://jabber.org/protocol/rsm"> <max>100</max> </set> </retrieve> </iq> This is the response I am getting. <iq xmlns="jabber:client" type="error" to=

didReceiveInvitation() is not being called in XMPPFramework and Swift 2

血红的双手。 提交于 2019-12-20 04:16:11
问题 I am creating chatting application like Whatsapp . I have successfully write the functionality of Text chat, Image, Audio, Video Transfer. Now I am creating the Multi user chat. After a long R&D I am asking this question. Please tell me what I am doing wrong in my code. I have followed all these tutorials but not luck https://github.com/robbiehanson/XMPPFramework/issues/640 MUC How-to with XMPPFramework Accepting chatroom invitation Ok Below is my Code 1. After setting the STREAM successfully

XMPPFramework message not sent

本小妞迷上赌 提交于 2019-12-19 11:58:06
问题 I receive messages from a Google Talk account, they are shown in the Table View in the Ios emulator, but when i send it, it is not shown in the Google Talk client (in another computer). This is the code: -(IBAction)sendchat:(id)sender { General *general = [General sharedManager];//It is a singleton class used to store some values that need to be accesible in the whole application. NSXMLElement *body = [NSXMLElement elementWithName:@"body"]; text=[mensaje text]; NSLog(@"Texto en el body: %@",

Adding Custom Attributes in Message tag in XMPP packet using asmack for android?

南楼画角 提交于 2019-12-19 04:05:45
问题 The Message Packet that i want to recieve. <message to="39@domainname.com/smack" chat_id="73392" custom_packet="true" user_id="44" manager_id="39" time_stamp="0" website_id="0" visitor_name="John" end_time="False" xml:lang="en-us" type="groupchat" from="room73392@conference.domainname.com/39"> <body>Hello</body> <x xmlns="http://jabber.org/protocol/muc#user"> <status xmlns="" code="0"/> </x></message> Message Packet that I am Recieving. <message to="44@domainname.com/Smack" from="room73407