openfire

Smack API - Read Chat History from Openfire Server

爱⌒轻易说出口 提交于 2019-11-28 07:52:15
How can I fetch chat log or chat history from Openfire server using Smack library into an Android application? As far as I know, there is no storing of chat history in Openfire. You can only get offline messages sent by user (when they connect next time for example), but if you want to store the messages you can implement it yourself directly on the XMPP server (personally I did it using mongodb - it works great!). But then, maybe I missed something in Openfire... Openfire server can surely save chat histories. To turn it on, you should go to Server/Server Settings/Message Audit Policy and

Smack 4.1 Android anonymous registration to Openfire

 ̄綄美尐妖づ 提交于 2019-11-28 01:53:08
问题 I want connect anonymously to openfire server with Android Smack 4.1 client and register the new user (username = "wq", password="wq") with AccountManager, and then disconnect and login as non-anonymous registered user. 3.1.1 Registration with a Server Special care must be taken when an unregistered entity interacts with a server rather than a service. Normally, a server enables in-band registration so that entities can "bootstrap" their participation in the Jabber network; this bootstrapping

XMPP Sending/Receving file in iphone sdk …?

孤街醉人 提交于 2019-11-27 20:20:11
How to send/receive file in iphone sdk using xmpp framework ? Currently i am using XEP-0065 classes, and use the following code: ObjTURNSocket = [[TURNSocket alloc] initWithStream:((TestAppDelegate*)[[UIApplication sharedApplication] delegate]).xmppStream toJID:chatuser.jid]; [ObjTURNSocket start:self]; And I am getting following response from the server: <iq type="error" id="AB2ED567-B97F-4DFE-B789-7731A617C239" to="kapil@testweb/6df6dc96" from="jabber.org"> <query xmlns="http://jabber.org/protocol/disco#items"/> <error code="404" type="cancel"> <remote-server-not-found xmlns="urn:ietf:params

Openfire offline notification through PHP

 ̄綄美尐妖づ 提交于 2019-11-27 16:33:23
问题 I have installed Openfire 3.10.2 on Ubuntu 12.04 . Chat is working fine and for offline message management I have installed the CallbackOnOffline plugin. When the recipient is offline, a url is called. The plugin loads the url from the plugin.callback_on_offline.url property, adds 'to' and 'from' parameters and executes an asynchronous GET request. Sample Link. I checked what information I get from that and I got a "to" and "from", but I also need those along with the message for the push

Mapping Openfire Custom plugin with aSmack Client

烈酒焚心 提交于 2019-11-27 16:29:00
I'm a newbie to XMPP so forgive me if this question sounds silly. I want to create a custom plugin and map it with my aSmack client on Android. I'm trying to apply my knowledge of Web Services but I'm not winning. So please guide my thinking toward the best approach, an example will be really helpful. Thanx in advance. There are many types of plugins, let's talk in general pourpose. Igniterealtime Plugin guide You want to define a brand new IQ Stanza to manage an UserCustomParam. Let's say: <iq from="user1@myserver" to="myserver" type="get"> <usercustomparam xmls:"com.records.iq" retrive=

How retrieve Chat History using Java Smack library from openfire server?

a 夏天 提交于 2019-11-27 14:06:12
问题 After installing Open Archive plugin in the Openfire server I can see the chat conversation between two user from the openfire admin panel which is pretty easy and that is web based too. Now I want to retrive those conversation or chat history from chat client application(written in java) where I've used Smack library. I didn't found any helpfull resource for that. Any advice will be helpfull. 回答1: Smack just implemented MAM feature [XEP 0313] but yet not released, hope to get it on next

Smack “No Response From Server”. Not sure why am i getting this error

旧城冷巷雨未停 提交于 2019-11-27 13:21:20
问题 I have an openfire server setted up on my local machine. I am trying to connect this server, but getting "No response from server" error. Not sure why? I have spark client on the same machine that is getting connected to the server successfully. Can you please help me out to identify the problem? Below is the log details that might help 07-30 01:01:02.570: I/System.out(424): 01:01:02 AM SENT (1156489960): <stream:stream to="192.168.1.3" xmlns="jabber:client" xmlns:stream="http://etherx.jabber

send push notification to ios for chat to offline user, openfire xmpp

青春壹個敷衍的年華 提交于 2019-11-27 10:35:04
问题 I have an ios chat application that uses openfire, what I need to do is send push notification when the message (1) can't be delivered for any reason, (2) app is in suspended state, i.e. can't generate a notification on its own. I have read most of the related questions/suggestions on this on stackoverflow and elsewhere and I have concluded few solutions to my problem. I am not an ios developer nor did I know anything about openfire or xmpp before a couple of days, so I am afraid my

XMPPFramework - Retrieve Archived Messages From Openfire Server

六眼飞鱼酱① 提交于 2019-11-27 07:01:24
I am developing a chat app for iPhone using XMPP and openfire server,OpenFire server is storing all the chat history between users but When I try to retrieve the chat history for a particular user I get only the date and the number of chat messages but not the actual text messages I have already installed open archive plugin for message archiving on openfire This is the stanza which I have passed to Openfire Server <iq type='get' id='pk1'> <list xmlns='urn:xmpp:archive' with='piyush@openfire'> <set xmlns='http://jabber.org/protocol/rsm'> <max>30</max> </set> </list> </iq> This is the result

creating encrypted passwords in openfire MySQL via PHP

那年仲夏 提交于 2019-11-27 03:39:53
问题 Openfire stores encrypted passwords in a database using blowfish encryption. http://svn.igniterealtime.org/svn/repos/openfire/trunk/src/java/org/jivesoftware/util/Blowfish.java is the java implementation for how encrypt / decrypt functions work in openfire. My goal is to create new user entries in the database via PHP and MySQLI. All of the variations I've tried have yielded results that don't match what already exists in the database. For example: