smack

Unable to connect to ejabberd localhost

不羁岁月 提交于 2019-12-25 05:48:07
问题 I am tyring to connect to the ejabberd localhost from my android application The ejabbered server does not show the online user on ejabberd web admin. AbstractXMPPConnection conn1; conn1 = new XMPPTCPConnection("MyID@localhost", "password", "192.168.1.23"); conn1.connect(); if(conn1.isConnected()) { Toast.makeText(this,"conn 1 successfull",Toast.LENGTH_LONG).show(); } // Create a connection to the jabber.org server on a specific port. XMPPTCPConnectionConfiguration config =

Android Smack MessageEventManager not compiling

拜拜、爱过 提交于 2019-12-25 04:39:37
问题 I am using smack API with openfire server to make an android app. I am trying to implement a MessageEventManager and MessageEventProvider to my app so it will tell me if the message was delivered or not though when i try to declare it a MessageEventManager, it is not compiling and tells me to create that class, What can i do? i have the following dependencies in my gradle: dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:appcompat-v7:22.1.1'

File transfer in group chat with XMPP

霸气de小男生 提交于 2019-12-25 02:38:17
问题 I am using group chat with open fire. i can able to send messages but how to send file to group with Smack library. i can able to send file to single user with below but i don't know how to send to group chat (MUC) so all users in room will receive that file OutgoingFileTransfer transfer = manager.createOutgoingFileTransfer("usre2@myHost/Smack"); 回答1: Use XEP-0066: Out of Band Data - this is small extension to standard groupchat message with url and description. Other users will receive link

what does feature not implemented response mean

时间秒杀一切 提交于 2019-12-25 01:45:52
问题 I am trying to send a custom IQ to ejabberd server from android app and I have this following class public class IQCustom extends IQ { public final static String childElementName = "query"; public final static String childElementNamespace = "jabber:iq:conversations"; public IQCustom(String userFrom, String server) { super( childElementName, childElementNamespace ); this.setType(Type.get); setTo( server ); setFrom( userFrom ); } @Override protected IQChildElementXmlStringBuilder

Smack throws “Exception in thread ”Smack Packet Reader (0)“ java.lang.NoSuchMethodError: org.jivesoftware.smack.util.StringUtils.parseDate”

走远了吗. 提交于 2019-12-24 23:23:21
问题 I am trying to create Multi user chat group from App Server(TOMCAT),I have created a XMPP bot in a servlet. As per my requirement i have to create a Multiuser Chat group from App server(using xmpp bot on app server),and join user from android app. Creation of Multi user chat group and joining user from Android(using aSmack)works just fine,when i try to do same thing on appServer(TOMCAT),i am getting error, At first when I try to create MUC i was getting "Can't create a multi user chat (MUC)

MUC configuration error : Couldn't find a field for the specified variable

 ̄綄美尐妖づ 提交于 2019-12-24 19:45:12
问题 I want to create group chat like whatsapp. i am using MUC service with ejabberd server. I have created group successfully but i unable to add member permanentantly in a group. I have also tried using send invitation and join group but it not work when user is offline. it is autometically remove user from group when it is offline. So i have tried belove code to add member in a group but it gives error : Couldn't find a field for the specified variable. Here is my code : EntityBareJid mucJid =

Android asmack: stateChange never called

好久不见. 提交于 2019-12-24 05:24:05
问题 I am building a chat application using asmack xmpp client. Chat works fine and I have implemented ChatStateListener but stateChanged method never gets called. Currently to get composing status I am parsing the message xml. Below is the message format for composing,text, active. <message id='5ec7d' to='admin@testserver123.net' from='praveenraj@testserver123.net/682e3641' type='chat'><composing xmlns="http://jabber.org/protocol/chatstates" /></message> <message id='9a93f22' to='admin

i am getting a error when trying to register a user using smack api(4.2) on android device on ejabberd (17.07)

落爺英雄遲暮 提交于 2019-12-24 05:04:41
问题 I tried to find the reason of the error but cannot found it. If anyone can suggest a way it will be highly appreciated. Earlier I was using ejabberd version 2.1 with default mnesia, which was working fine. I was able to register users from the android app. But now when I installed new ejabberd 17.07 with mysql, it gave me error as follow: Connection XMPPTCPConnection[not-authenticated] (5) closed with error org.jivesoftware.smack.XMPPException$StreamErrorException: not-authorized You can read

Creating new user with Smack 4.2.0-beta1 on ejabberd throws XMPP Exception: forbidden - auth

ぐ巨炮叔叔 提交于 2019-12-24 02:44:32
问题 I am doing Chat application with smack . I am new for this technology. I have created some manual users from Ejabberd server. Using those users I have done one to one chat and group chat. But I tried to create new user from android code But I am getting this below error XMPPError: forbidden - auth 08-02 08:23:36.273 31097-31097/com.agarangroup.hello W/System.err: at org.jivesoftware.smack.PacketCollector.nextResultOrThrow(PacketCollector.java:232) 08-02 08:23:36.273 31097-31097/com

How to know Typing Status in XMPP openfire using Smack

北城以北 提交于 2019-12-24 00:34:26
问题 I am developing chat application by using Openfire XMPP server. I can text chat between two user. But i want to know Typing status when some one is typing message. So i created a class :- public class typingStatus implements ChatStateListener { @Override public void processMessage(Chat arg0, Message arg1) { // TODO Auto-generated method stub } @Override public void stateChanged(Chat arg0, ChatState arg1) { // TODO Auto-generated method stub System.out.println(arg0.getParticipant() + " is " +