openfire

Openfire Plugin compilation issue

允我心安 提交于 2020-01-07 03:57:18
问题 I'm trying to compile openfire in eclipse that is work fine.After i need to compile plugin.I pass reference of openfire. Reference of this video https://www.youtube.com/watch?v=KlMaBplFbuQ and my structure of openfire check in below image. I got issue when i tried to build with ant.It ask me go to src and tool folder but i put that outside directory.Now i'm trying to build with main directory but still got exception. I'm not able to give accurate path of main directory while building tool

How to implement XMPP chat in an android app?

你离开我真会死。 提交于 2020-01-06 13:28:30
问题 I tried using the Smack library, but all i get is this: 05-07 04:28:43.299 2958-2958/g.d.allinonechat E/dalvikvm﹕ Could not find class 'javax.naming.directory.InitialDirContext', referenced from method org.jivesoftware.smack.util.dns.JavaxResolver.<clinit> that with a search on Google i found out, Google doesn't let some JRE classes work on Android, so.. nothing to do here tried aSmack, i'm using windows, tried compiling it on Linux Ubuntu, but it wouldn't compile ./build.bash line 142 /root

How to implement XMPP chat in an android app?

心不动则不痛 提交于 2020-01-06 13:27:12
问题 I tried using the Smack library, but all i get is this: 05-07 04:28:43.299 2958-2958/g.d.allinonechat E/dalvikvm﹕ Could not find class 'javax.naming.directory.InitialDirContext', referenced from method org.jivesoftware.smack.util.dns.JavaxResolver.<clinit> that with a search on Google i found out, Google doesn't let some JRE classes work on Android, so.. nothing to do here tried aSmack, i'm using windows, tried compiling it on Linux Ubuntu, but it wouldn't compile ./build.bash line 142 /root

Remote server not found in XMPP

霸气de小男生 提交于 2020-01-06 06:57:34
问题 i send Packet to client <iq id="kGufc-4" to="tp@localhsot" from="admin@localhost" type="get"><query xmlns='http://localhost/protocol/disco#info'/></iq> And received <iq id="kGufc-4" to="admin@localhost/testchat" from="tp@localhsot" type="error"><error code="404" type="CANCEL"><remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq> what is problem??? 回答1: You have two problems with that stanza. 1) You've typod 'localhsot' instead of 'localhost'. 2) You're putting a

Remote server not found in XMPP

笑着哭i 提交于 2020-01-06 06:56:22
问题 i send Packet to client <iq id="kGufc-4" to="tp@localhsot" from="admin@localhost" type="get"><query xmlns='http://localhost/protocol/disco#info'/></iq> And received <iq id="kGufc-4" to="admin@localhost/testchat" from="tp@localhsot" type="error"><error code="404" type="CANCEL"><remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq> what is problem??? 回答1: You have two problems with that stanza. 1) You've typod 'localhsot' instead of 'localhost'. 2) You're putting a

Cannot follow external database(MySQL) of openfire server quide

三世轮回 提交于 2020-01-06 05:35:10
问题 I have MySQL database which I created on university's server I try to develop android application that can send msg from mobile through XMPP protocol to keep data at my database server(from 1.) At this time, I already downloaded openfire 3.7.0.dmg(MAC OS X) then try to setup server on my laptop My problem is I cannot follow Database Installation Guide the error occurred: Does not have mysqladmin command at my Terminal. So, I cannot create table for openfire. Should I need to install MySQL on

Chat works only one-way with Smack 4.1.7 Android

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 03:11:47
问题 I am working on Android Chat app based on Smack 4.1.7 . I have created my XMPP related operations on Saperate class said MyXMPP.java. and in my app's Application class i am initializing MyXMPP class objects. my problem is, suppose we have user 1 and user 2. if user 1 sends message to user 2 then user 2 can get message but cant reply back. means if user 2 trying to reply then user 1 can not get user 2's reply. in short if user 1 initiates chatting then, only user 1 can send message. user 2 can

Chat works only one-way with Smack 4.1.7 Android

女生的网名这么多〃 提交于 2020-01-06 03:11:01
问题 I am working on Android Chat app based on Smack 4.1.7 . I have created my XMPP related operations on Saperate class said MyXMPP.java. and in my app's Application class i am initializing MyXMPP class objects. my problem is, suppose we have user 1 and user 2. if user 1 sends message to user 2 then user 2 can get message but cant reply back. means if user 2 trying to reply then user 1 can not get user 2's reply. in short if user 1 initiates chatting then, only user 1 can send message. user 2 can

How to get openfire chat room messages history

假如想象 提交于 2020-01-05 10:11:10
问题 I use Strophe library to connect to an OpenFire XMPP server. How can I receive the chat room messages history ? var o = {to:'roomName@conference.domain.com/youNick'}; var m = $pres(o); m.c('x', {xmlns : 'http://jabber.org/protocol/muc#user'}, null); connection.send(m.tree()); I get only 25 messages when I join room. How to get past 25 message of the chat room ? 回答1: You should add a <history/> element: https://xmpp.org/extensions/xep-0045.html#enter-managehistory. <x xmlns='http://jabber.org

xmpp学习笔记(一)

人走茶凉 提交于 2020-01-05 05:06:27
自己学习xmpp官方文档,慢慢整理的笔记,不见得都是正确的,请用选择性眼光看待,也有问题尚未解决,持续更新中~~~ 创建新工程,命名为XMPPIOS. 一:导入XMPPFramework 将XMPP拖拽到工程中。 添加静态库 并在Build Settings中设置如下 此时Run一下,成功,证明导入正确。 注意:XMPP使用了ARC, Edit -> Refactor -> convert to Objective-C ARC ,转换。 头文件也可以自己创建,内容是需要import的头文件,可以根据自己的需求来确定。 ------------------------------------------------可爱的分界线------------------------------------------------------------------ 二 :连接和注册 XEP-0077 XEP-0020 拖拽相应控件到页面中。 在appdelegate.h中创建相应属性 .m 这里创建xmpp的地方比官方的demo少了很多,主要是因为开始使用的时候个人认为并不用那么多变量,之后会一点一点添加。 添加 创建连接方法 创建连接成功后,两个代理方法调用,分别为 - ( void )xmppStreamWillConnect:( XMPPStream *)sender - ( void