xmppframework

Unable to connect XMPPFramework to Openfire server in iOS

爱⌒轻易说出口 提交于 2019-12-02 04:27:07
问题 I am working on an iOS chat app where user login to app. I've downloaded XMPPFramework from GitHub XMPPFramework. I am trying to connect XMPP framework with Openfire server by following this tutorial. Here is my code to connect XMPP to openfire. - (BOOL)connect { [self setupStream]; [xmppStream setHostName:@"192.168.1.5"]; [xmppStream setHostPort:5222]; NSString *jabberID = [[NSUserDefaults standardUserDefaults] stringForKey:@"userID"]; NSString *myPassword = [[NSUserDefaults

Get XMPP Chat History OpenFire

蓝咒 提交于 2019-12-02 02:47:12
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="dev_user103@mydomain/6i0qoo9tek"> <retrieve xmlns="urn:xmpp:archive" with="dev_user80@mydomain"> <set

iOS XMPP PubSub not receiving events while publishing node to my subscribed users

狂风中的少年 提交于 2019-12-02 01:08:21
问题 I am using XMPPClient with ejjaberd for my chat application(like Whatsapp). I want to implement XMPPPubsub to notify all users when any one of user changed his/her profile picture. My framework : https://github.com/robbiehanson/XMPPFramework Here is my code Initialize XMPPPubsub XMPPJID *serviceJID =[XMPPJID jidWithString:[NSString stringWithFormat:@"pubsub.%@",[[SharedClass sharedInstance] hostName]]]; _xmppPubSub = [[XMPPPubSub alloc]initWithServiceJID:serviceJID dispatchQueue:dispatch_get

Unable to connect XMPPFramework to Openfire server in iOS

不羁的心 提交于 2019-12-02 00:29:34
I am working on an iOS chat app where user login to app. I've downloaded XMPPFramework from GitHub XMPPFramework . I am trying to connect XMPP framework with Openfire server by following this tutorial . Here is my code to connect XMPP to openfire. - (BOOL)connect { [self setupStream]; [xmppStream setHostName:@"192.168.1.5"]; [xmppStream setHostPort:5222]; NSString *jabberID = [[NSUserDefaults standardUserDefaults] stringForKey:@"userID"]; NSString *myPassword = [[NSUserDefaults standardUserDefaults] stringForKey:@"userPassword"]; if (![xmppStream isDisconnected]) return YES; if (jabberID ==

XMPPFramework message not sent

岁酱吖の 提交于 2019-12-01 15:01: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: %@", text); [body setStringValue:text]; NSArray *dest=[general.firstfrom componentsSeparatedByString:@"/"];/

Cannot Read Custom Attributes From Message TAG when using asmack XMPP library for android?

僤鯓⒐⒋嵵緔 提交于 2019-12-01 14:01:53
问题 This is the XML sent From XMPP Server Side that i want to recieve so that i can send it to my XML parser. <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> This Is a sample XML that i

XMPPFramework TLS/SSL connection with Openfire

狂风中的少年 提交于 2019-12-01 12:57:17
I'm trying to set up a secure connection TLS/SSL beetween my client apps and an OPENFIRE server. I'm using the XMPPFramework for iOS, how can i do that? I have already tried to change the openfire security settings to made required a secured connection, but in this way, my app won't connect to server. I think that i have to set something in the xmppframework but i can't find any instruction. My connection code : - (void)setupStream { NSAssert(xmppStream == nil, @"Method setupStream invoked multiple times"); // Setup xmpp stream // // The XMPPStream is the base class for all activity. //

XMPPFramework - How to Create a MultiUserChat Rooms?

倾然丶 夕夏残阳落幕 提交于 2019-12-01 12:29:45
How can I Achieve GroupChat in iPhone using XMPPFramework.I tried fallowing code but room is not created.How can I know whether room is created or not.XMPPRoomDelegate are not called.When Stream disconnected, handleDidLeaveRoom method called.Can any one help me.thanks inadvance #define XMPP_HOSTNAME_2 @"chat.someservername.com" #define XMPP_JID @"venkat@chat.someservername.com" #define XMPP_PASSWORD @"venkat" #define ROOM_JID @"venkat_muc@conference.chat.someservername.com/iMac" - (void)mucSetupStream { xmppStream = [[XMPPStream alloc] init]; xmppStream.hostName = XMPP_HOSTNAME_2; xmppStream

iOS: XMPP: Message Archiving for Group Chat Message

别说谁变了你拦得住时间么 提交于 2019-12-01 09:14:01
All one-one chat is send with Message Type as Chat. Thus the Message Archiving technique (shown below) worked fine for me to save/retrieve chat history. // Setup message archiving xmppMessageArchivingStorage = [XMPPMessageArchivingCoreDataStorage sharedInstance]; xmppMessageArchiving = [[XMPPMessageArchiving alloc] initWithMessageArchivingStorage:xmppMessageArchivingStorage]; [xmppMessageArchiving setClientSideMessageArchivingOnly:YES]; // Activate xmpp modules [xmppMessageArchiving activate:xmppStream]; // Add delegate [xmppMessageArchiving addDelegate:self delegateQueue:dispatch_get_main

iOS XMPP Framework with Openfire Server get all registered users

ぃ、小莉子 提交于 2019-12-01 07:44:19
问题 for my IOS Chatting Application i am using Openfire Server, i am retrieving particular user friends list but now i want to retrieve all registered users from Openfire Server. Please help me out and thanks in advance. 回答1: Hi Guys finally i found the alternative answer for this by searching users using their username. 1.for every contact i am adding emailid username@domainname like this. 2.in the place searchstring if we use domainname then we will get all registered users. //Request - (void