xmppframework

Need assistance regarding using the xep-0184

偶尔善良 提交于 2019-12-07 18:06:53
问题 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

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

独自空忆成欢 提交于 2019-12-07 13:54:36
问题 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]; [

Members cannot get member list in a muc room

↘锁芯ラ 提交于 2019-12-07 08:00:33
I'm using IOS XMPPFramework for our chat application and I'm creating the group and adding the selected member with the below code, and receipants succesfully joins the group. And if I query the member list of that group admins succesfully retrieve the group's members but members cannot get the same list and instead they are receiving the below error: <iq xmlns="jabber:client" from="250034370263@conference.chat.meeapps.com.tr" to="16503312600@chat.meeapps.com.tr/15323458207749806891286" id="FF691FF5-D12B-4BAA-AB19-84E7A2B945D4" type="error"><query xmlns="http://jabber.org/protocol/muc#admin">

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

若如初见. 提交于 2019-12-07 04:43:25
问题 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. 回答1: 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

File transfer using XMPP (Extension XEP-0065)

a 夏天 提交于 2019-12-06 17:21:42
问题 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:

How can i create a new user account in XMPPFrameWork in ios

送分小仙女□ 提交于 2019-12-06 11:57:01
Hi I have tried some code for new user registration using XMPPFrameWork in IOS. -(IBAction)Registaton:(id)sender { // iPhoneXMPPAppDelegate *appDelegate =(iPhoneXMPPAppDelegate *)[[UIApplication sharedApplication]delegate]; [[[self appDelegate] xmppStream] connectWithTimeout:XMPPStreamTimeoutNone error:nil]; NSString *username = self.username.text; NSString *password = self.password.text; NSString *name =self.name.text; NSString *email=self.email.text; NSMutableArray *elements = [NSMutableArray array]; [elements addObject:[NSXMLElement elementWithName:@"username" stringValue:username]];

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

扶醉桌前 提交于 2019-12-06 11:04:36
问题 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),

Xmppframework could not build module libxml

久未见 提交于 2019-12-06 09:54:29
On DDXMLNode.h My project import XMPPFramework by cocoapods ,like: pod 'XMPPFramework', '~> 3.6.6' I find some way like: 1. header search paths add "$(SDKROOT)/usr/include/libxml2" 2. Other Linker Flags add "-lxml2" 3. Framework Search Path add "/usr/lib/libxml2.dylib" All not working! Instead of changing path of the files you can do what i have done to resolve my error in Xcode 7.2 beta First check if you have file libxml2.tbd framework and libresolve.tbd framework if not then add it to you project and replace few things #if !(TARGET_IPHONE_SIMULATOR) //@import dnssd; #import <dns_sd.h> #else

How to retrieve vCard in iOS from XMPP/OpenFire

六月ゝ 毕业季﹏ 提交于 2019-12-06 09:11:28
As the name suggests I am trying to retrieve a vCard for a user using one of the next XMPPFrameworks methods: - (XMPPvCardTemp *)fetchvCardTempForJID:(XMPPJID *)jid; - (XMPPvCardTemp *)fetchvCardTempForJID:(XMPPJID *)jid useCache:(BOOL)useCache; My current implementation is: dispatch_queue_t queue = dispatch_queue_create("queue", DISPATCH_QUEUE_PRIORITY_DEFAULT); dispatch_async(queue, ^{ XMPPvCardCoreDataStorage* xmppvCardStorage = [XMPPvCardCoreDataStorage sharedInstance]; XMPPvCardTempModule* m = [[XMPPvCardTempModule alloc] initWithvCardStorage:xmppvCardStorage]; [m fetchvCardTempForJID:

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

穿精又带淫゛_ 提交于 2019-12-06 07:18:26
问题 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]