xmpp

XMPPFramework - “not-authorized” error upon deleting a registered user account

烂漫一生 提交于 2019-12-11 12:33:24
问题 I want to delete an Openfire user which is currently connected using XMPP. I use the below code for deleting the user: - (void)DeleteAccountFromOpenfire { NSXMLElement *query = [NSXMLElement elementWithName:@"query" xmlns:@"'jabber:iq:register'"]; [query addChild:[NSXMLElement elementWithName:@"remove"]]; XMPPIQ *iq = [XMPPIQ iqWithType:@"set" elementID:@"unreg1"]; [iq addChild:query]; [[self xmppStream] sendElement:iq]; } But I get a not-authorized error from the server. How could I avoid

How to delete a message from group chat in XMPP(Openfire)?

拥有回忆 提交于 2019-12-11 12:25:24
问题 I want to delete single group chat message from openfire history. Is it possible? The history is not saved in the OfMessageArchive table, after deleting the message in the application the message disappears, but after re-logging is downloaded from the (base?) of Openfire and it's still visible. 回答1: Until now you cant delete single messages. There is an Extension planned (http://legastero.github.io/customxeps/extensions/message-delete.html) but it's not yet supported. The only possibility is

Create jar file from openfire plugin

﹥>﹥吖頭↗ 提交于 2019-12-11 11:51:55
问题 I need to customize openfire plugin and i have made one plugin for openfire but no idea how to compile.I have followed many tutorial but not working. Here is one video for compile openfire but got 505 error. I have followed official tutorial but not able to compile. build\build.xml:238: Must use JDK 1.5.x or higher to build Openfire got this exception. Not get idea how can i make jar file with compilation or without.If with, I tried with ant as well but there is some problem. I'm stack here

How to build a jabber client using libstrophe

限于喜欢 提交于 2019-12-11 11:46:43
问题 I'm trying to make a simple Jabber client using the libstrophe library. It's going fairly well so far, except for one thing for which I need some clarification. Namely, how am I supposed to (continuously) know the status (i.e., Online/Offline) of contacts, so that I can display it to the user of my program? Similarly, how am I supposed to request the roster of the user? I've looked at the roster.c example provided by libstrophe, but that only prints out the roster once. In a real application,

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

create forum with xmpp pubsub

狂风中的少年 提交于 2019-12-11 10:39:42
问题 i just wanted to know if I want a collection node act as topic and this collection node has leaf nodes for different questions wouldn't it be highly inefficient to have a dedicated leaf nodes for each question (collection node-leaf1, leaf2, ..., leafN)? This will end up with thousands of different leaf nodes in the database for different questions and not just items (for questions and answers) in one leaf node per topic (collection node)... (collection node-leaf node (where Q&A with big chunk

xmpp send and receive message in android application

时间秒杀一切 提交于 2019-12-11 10:36:33
问题 I am working on a sms application. I am able to send a message from my application using the function sendMessage("subject" , "to");. I need to know how to receive the message sent from the other end. I need to get that data and display the data in textview in my application. How can i achive that. How can i achive that. Please guide me. Thanks in aadvance. 回答1: this will help you: PacketFilter filter = new MessageTypeFilter(Message.Type.chat); // Listener for incoming message from any user

XMPP Google Talk X-OAUTH2 login requires username

∥☆過路亽.° 提交于 2019-12-11 10:35:42
问题 I'm implementing an XMPP client for Google Talk that is using the relatively new X-OAUTH2 mechanism. I had the idea that I shouldn't need to store either username or password for the authentication to the service. However, Google's documentation for the X-OAUTH2 authentication states this is the initial <auth> request to make: <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="X-OAUTH2" auth:service="oauth2" xmlns:auth="http://www.google.com/talk/protocol/auth"> base64("\0" + user_name

xmpp - how i get notification when my friend logged in, he is in my roster list - delphi

瘦欲@ 提交于 2019-12-11 10:35:32
问题 after one day of searching and reading rfc's i haven't found any tip in this subject. i wrote delphi component to access openFire server and all steps until now is good, but i face one problem is: i have many friends in my roster list ,as example my Account Is "A@localhost" when account "B@localhost" logged in I haven't get any notification according to this. the "B" account is added in my roster list . Thanks in advance 回答1: XMPP presence is a mutual agreement; your friend must accept your

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