xmppframework

iOS: XMPP: Message Archiving for Group Chat Message

这一生的挚爱 提交于 2019-12-01 06:47:11
问题 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

XMPPFramework - How to create a group chat room?

六眼飞鱼酱① 提交于 2019-12-01 00:02:20
I have an application which I am using for one-to-one chat. Now I need to implement group chat. I know it is possible with XMPPFramework and there is a class called XMPPRoom which we can use to create a room or join a room. But I am unable to implement that in my project. Can anyone please provide me some ideas, suggestions and if possible a sample application. Thanks in advance :) here you have a script that allows to connect to a room [xmppRoom activate:[self xmppStream]]; [xmppRoom createOrJoinRoom]; In order to do this you should have access to the xmppStream. - (void

OpenFire/XMPP 503 service-unavailable error (XEP-0065 using iOS XMPPFramework)

ぐ巨炮叔叔 提交于 2019-11-30 15:08:32
Problem : I am attempting a TURN Connection (XEP-0065) using the iOS XMPPFramework and an OpenFire Server. I want to be able to send and receive files. However, I am receiving a 503 service-unavailable error. Note : The base of my code is from the following tutorial : http://mobile.tutsplus.com/tutorials/iphone/building-a-jabber-client-for-ios-server-setup/ XML Error : I've debugged through TURNSocket.m. It goes into processRequestResponse and has the following XML. (If I am not mistaken, this has been sent from OpenFire to me, rather than vice versa?) ... <iq xmlns="jabber:client" type="error

XMPPFramework - Retrieving Openfire Message Archives

旧城冷巷雨未停 提交于 2019-11-30 13:33:45
问题 Spent hours trying to solve this problem and I'm stumped! Trying to grab the Chat History between 2 users on my OpenFire server and I read that I plugin was needed to do this. So, I installed the 'Open Archive' plugin on my OpenFire server and send the following XML (as per the XMPP-0136 protocol documentation): <iq type="get" id="page1"> <retrieve xmlns="urn:xmpp:archive" with="username@server.com" start="1469-07-21T02:56:15Z"> <set xmlns="http://jabber.org/protocol/rsm"> <max>100</max> <

Options for real-time web notifications and updates using Comet/XMPP vs WebSocket technologies on a Microsoft stack?

假如想象 提交于 2019-11-30 08:58:42
I am scoping out the architectural options for a project that will render live updates (like Facebook) of user activities - logins, photos, etc. Two main UI components of this are an auto-updating scrolling area where new notifications will be listed (photos, etc.), and a toolbar that will update with things like updated message counts, etc. The contenders for this are Jabber/Comet/XMPP-based and WebSocket technologies. Comet camp: Pokein WebSync WebSockets camp: Kaazing LightStreamer SuperWebSocket XSockets SignalR Since this the existing infrastructure is a Microsoft stack, I would rather

XMPPFramework - Retrieving Openfire Message Archives

本秂侑毒 提交于 2019-11-30 07:52:59
Spent hours trying to solve this problem and I'm stumped! Trying to grab the Chat History between 2 users on my OpenFire server and I read that I plugin was needed to do this. So, I installed the 'Open Archive' plugin on my OpenFire server and send the following XML (as per the XMPP-0136 protocol documentation): <iq type="get" id="page1"> <retrieve xmlns="urn:xmpp:archive" with="username@server.com" start="1469-07-21T02:56:15Z"> <set xmlns="http://jabber.org/protocol/rsm"> <max>100</max> </set> </retrieve> </iq> In code, this is achieved via the following: NSXMLElement *iQ = [NSXMLElement

How to send message using XMPP Framework

时光毁灭记忆、已成空白 提交于 2019-11-30 07:08:22
I am creating a chat application using XMPP Framework in iphone. i could get received messages but i am not able to send a message. can any one give me solution for this?? - (void)sendMessage:(NSString *)msgContent { NSString *messageStr = textField.text; if([messageStr length] > 0) { NSXMLElement *body = [NSXMLElement elementWithName:@"body"]; [body setStringValue:messageStr]; NSXMLElement *message = [NSXMLElement elementWithName:@"message"]; [message addAttributeWithName:@"type" stringValue:@"chat"]; [message addAttributeWithName:@"to" stringValue:[jid full]]; [message addChild:body];

xmpp messages are lost when client connection lost suddently

廉价感情. 提交于 2019-11-29 22:40:35
I am using ejabberd server and ios xmppframework. there are two clients, A and B. When A and B are online, A can send message to B successfully. If B is offline, B can receive the message when B is online again. But when B is suddenly/unexpectedly lost connection, such as manually close wi-fi, the message sent by A is lost. B will never receive this message. I guess the reason is that B lost connection suddenly and the server still think B is online. Thus the offline message does work under this condition. So my question is how to ensure the message that sent by A will be received by B? To

OpenFire/XMPP 503 service-unavailable error (XEP-0065 using iOS XMPPFramework)

有些话、适合烂在心里 提交于 2019-11-29 21:18:51
问题 Problem : I am attempting a TURN Connection (XEP-0065) using the iOS XMPPFramework and an OpenFire Server. I want to be able to send and receive files. However, I am receiving a 503 service-unavailable error. Note : The base of my code is from the following tutorial : http://mobile.tutsplus.com/tutorials/iphone/building-a-jabber-client-for-ios-server-setup/ XML Error : I've debugged through TURNSocket.m. It goes into processRequestResponse and has the following XML. (If I am not mistaken,

Better Way to implement the chat application using XMPP on Android?

戏子无情 提交于 2019-11-29 19:33:54
Hi i want to implement the Chat application in android using XMPP (To avoid the GCM notifications because GCM uses request response process). i have done the 70 perc functionality using Smack library and OpenFire server. but after completion of these i came to know about the QuickBlox SDK . I don't know completely about that but few people are saying that it is good api by seeing the features.. can any one tell me that is it correct way of implementing the chat application using smack for xmpp . or we have any other good api which uses xmpp for android . Flow The Stackoverflow question