xmppframework

Losing messages over lost connection xmpp

Deadly 提交于 2019-12-11 11:04:59
问题 i went through this question Lost messages over XMPP on device disconnected but there is no answer. When a connection is lost due to some network issue then the server is not able to recognize it and keeps on sending messages to disconnected receiver which are permanently lost. I have a workaround in which i ping the client from server and when the client gets disconnected server is able to recognize it after 10 sec and save further messages in queue preventing them from being lost. my

Unable to send or receive messages in Multi User Chat - XMPPFramework

三世轮回 提交于 2019-12-11 09:48:50
问题 I have created a group on Openfire server and two users. I'm able to authenticate both users using XMPPFramework but unable to exchange the messages between them. I can see both users join the group on Openfire server. Using the following server details: #define kHostName @"Some Server URL" #define kServerName @"Some Server Name" #define kRoomAddress @"testchatroom@conference.Some Server Name" Using the following code for stream setup and creating room: - (void)setupStream { NSString

iOS Backgrounding & XMPPFramework

℡╲_俬逩灬. 提交于 2019-12-11 09:47:11
问题 So I've created a simple XMPP app, but it appears I can't have background processing unless the app is one of the designated categories listed here. I just want to keep the socket open and display a notification on message received if the app isn't in the foreground. I've found it a little difficult to find out good information on iOS backgrounding, it appears a lot of apps out there manage to do it some how, but the documentation seems a lot more restrictive. Is it possible to run a chat

Not able to connect ejabberd server on Amazon using XMPP framework of iOS

白昼怎懂夜的黑 提交于 2019-12-11 05:55:57
问题 I am working on XMPP framework to create Text chat application. We have configure ejabberd server on amazaon ec2. I have tested my application on locally configured server and was working fine but as i replaced host and username with amazone ec2 details i am getting error "Read Operation timed out". I searched for help but issue is still unresolved. Please help me in find out the solution for this. 回答1: I find out solution for my own problem. I downloaded the latest framework from https:/

XMPP Query Group Chat (MUC) directory using search term

帅比萌擦擦* 提交于 2019-12-11 04:56:23
问题 Creating an XMPP client, part of which involves querying the directory for chat rooms whose name matches a specific search term. Lets call this search term SEARCH. The following XML (with the correct to/from) gives me a list of all chat rooms. <iq from='hag66@shakespeare.lit/pda' id='disco2' to='chat.shakespeare.lit' type='get'> <query xmlns='http://jabber.org/protocol/disco#items'/> </iq> example result: <iq xmlns="jabber:client" type="result" id="disco2" from="chat.shakespeare.lit" to=

Can't get message delivery receipt in XMPP

扶醉桌前 提交于 2019-12-11 03:16:05
问题 I am new to XMPP. I'm using XMPP and Open fire server for my chat app. The application is working but now I want to get message delivery receipt. I'm using the following code for that, in setupStream : xmppMessageDeliveryRecipts = [[XMPPMessageDeliveryReceipts alloc] initWithDispatchQueue:dispatch_get_main_queue()]; xmppMessageDeliveryRecipts.autoSendMessageDeliveryReceipts = YES; xmppMessageDeliveryRecipts.autoSendMessageDeliveryRequests = YES; [xmppMessageDeliveryRecipts activate:xmppStream

Efficient XMPP user search

痞子三分冷 提交于 2019-12-11 02:46:23
问题 I want to efficiently check for all local address book contacts if they have a jabber account. The users are registered on the XMPP server with the mobile phone number. I currently send the following XEP-0055 stanza to the ejabberd server and evaluate the result. <iq type="set" id="searchByUserName" to="vjud.ecoimac1.local" from="+1222333444@ecoimac1.local"> <query xmlns="jabber:iq:search"> <x xmlns="jabber:x:data" type="submit"> <field type="hidden" var="FORM_TYPE"> <value>jabber:iq:search<

XMPPFramework : can I determine the online/offline status of a user at all?

不问归期 提交于 2019-12-11 01:37:01
问题 How would I determine if a user is online/offline using XMPPFramework for iPhone? I have their JID etc etc. Is there a way of requesting a presence or something? Thank you. 回答1: Have you checked out the source code of the XMPPFramework sample project? If I remember correctly, this should be the relevant code snippet: // Subscribe to the buddy's presence // // <presence to="bareJID" type="subscribe"/> NSXMLElement *presence = [NSXMLElement elementWithName:@"presence"]; [presence

Get Offline Messages From XMPP Without Becoming Online

泄露秘密 提交于 2019-12-11 00:39:56
问题 We are using ejabberd server for our mobile chat application. And we are using IOS XMPP-Framework for our IOS application ( https://github.com/robbiehanson/XMPPFramework) But we have a problem on implementation that we couldn't find a solution. We've implemented every aspect of XMPP messaging and all works good besides one thing: While our application is on background, our ejabberd server sends us push notifications to inform us about offline messages. (Only sends notification for offline

reset the XMPP connection if the page gets refreshed

隐身守侯 提交于 2019-12-10 23:04:44
问题 I am trying to create a strophe connection with XMPP using javascript with my ejabberd server , i am able to make a connection when the page loads and able to disconnect when the disconnect button is clicked. now the problem is , the connection is alive and if a user accidently refresh the page , then my javascript is trying to make the connect again , and in response to that i am getting. (its just because the previous connection might be still alive ) <body xmlns='http://jabber.org/protocol