Questions tagged [smack]

Smack is an XMPP (Jabber) client library written in Java for Android and Java SE. It provides a simple API allowing developers to write clients for XMPP services.

Smack is an Open Source Java library for writing XMPP based clients. It provides access to the core functionality as well as many of the XMPP extensions. Smack supports both standard Java and Android since version 4.1 and obsoletes the fork.

Note: For Linux SMACK (Simplified Mandatory Access Control Kernel) see .

1476 questions
5
votes
2 answers

Fetch joined members list from group, xmpp;

I'm trying to fetch joined member list from particular group based on room JID, there are couple of method exists, mentioned below: MultiUserChat.getMembers(); It return XMPPError: forbidden - auth MultiUserChat.getOccupants(); It return self…
RobinHood
  • 10,897
  • 4
  • 48
  • 97
5
votes
0 answers

ChatStateListener not working smack

Implementing smack API and now trying to get the Chat status like whether the user is Composing, Paused, etc.. What I have done So far public class IncomingChatListener implements ChatMessageListener, ChatStateListener { @Override …
no one
  • 477
  • 6
  • 19
5
votes
1 answer

Smack XMPP error while creating new user: forbidden - auth

I'm trying to create new user via admin account. But I receive auth error. I tried answers like this, but it doesn't help. My code for creating new user: AccountManager accountManager = AccountManager.getInstance(mConnection); if…
5
votes
2 answers

How can I add custom attribute (nick) in my XMPP message tag, in Smack 4.1

I want to add custom attribute (nick) in my XMPP chat message, like the following example hello I know, it is not recommended by XMPP but it is my requirement as…
user4878765
5
votes
2 answers

Smack XMPP: Can't login to openfire server: "SASLErrorException: SASLError using DIGEST-MD5: not-authorized"

I am trying to create a basic connection and login to an Openfire server that I have installed. I have the following user in my users database which I created through the Openfire web admin interface: User: user Password: 12345678 I can connect…
DeanMWake
  • 893
  • 3
  • 19
  • 38
5
votes
3 answers

Smack and SASL Authentication error - No known authentication mechanisims

I am trying to create an XMPP client using the latest version of Smack 4.1.0-beta. But i am running into an error when trying login into a local running OpenFire server. org.jivesoftware.smack.SmackException: SASL Authentication failed. No known…
Marco
  • 15,101
  • 33
  • 107
  • 174
5
votes
1 answer

How to create an account from Smack 4.1

I'm trying to create an account from Smack for Android on jabber.at. Here is my code : XMPPTCPConnectionConfiguration conf= XMPPTCPConnectionConfiguration.builder() .setServiceName("jabber.at") …
guik
  • 419
  • 6
  • 11
5
votes
2 answers

java.io.EOFException: no more data available - expected end tag to close start tag

I am working on a chat app using xmpp,As per our requirement we have three server Apache Tomcat 7,ejabbered 2.1.11 and mysql 5.5, to run xmppbot on tomcat used below library -Smack-core-4.0.3.jar -smack-tcp-4.0.3.jar -xlightweb2.5.jar …
Dev
  • 2,326
  • 24
  • 45
5
votes
3 answers

How to set/get profile data with XMPP using Smack

I am working on a XMPP client on Android, using the Smack library. The roster/messaging/presence stuff is running very well. However, I didn't find a way to store additional profile information (userpicture, the dogs name, ...). The only way I see…
Ulrich Scheller
  • 11,800
  • 5
  • 28
  • 32
5
votes
1 answer

smack RosterListener not working in Android

Currently I am Working chat applicaiton using Xmpp SMACK API.but when i have called addrosterListener then i am not getting Presence current status.I have to reference…
dipali
  • 10,966
  • 5
  • 25
  • 51
5
votes
0 answers

File Transfer: show file size 0KB while transferring file using smack in Android

Getting Problem while file transfer in android using Smack library and open-fire Server,Empty file is received on other device while transferring file one device to another,its show the 0KB size.when i opened it,its shows blank screen.i does not…
Nitish Singla
  • 171
  • 1
  • 8
5
votes
2 answers

(a)Smack's IQ.toXml() returns XML without custom child elements

I'm using asmack the latest version (asmack-android-8-source-0.8.3) in a android project and I have the following code: connection.addPacketListener(new PacketListener() { @Override public void processPacket(Packet p) { …
Goran Horia Mihail
  • 3,536
  • 2
  • 29
  • 40
5
votes
1 answer

Presence listener not working in asmack

I am developing a chat application for Android using asmack. The connection is getting established and I'm able to login also. I've added listener for IQ packets and that is working fine. I have added listener for Presence packets also, here is my…
Abhishek
  • 346
  • 6
  • 17
5
votes
1 answer

How to get DiscussionHistory for MultiUserChat room using aSmack?

How to get the DiscussionHistory of a MUC room from MultiUserChat? I am able to create MultiUserChat instance and room by using aSmack library, now I want to show all the previous conversations that happened in the room. Anybody experienced in the…
RajaReddy PolamReddy
  • 22,428
  • 19
  • 115
  • 166
5
votes
3 answers

Can I invoke XMPPConnection.sendPacket from concurrent threads?

Motivation I want extra eyes to confirm that I am able to call this method XMPPConnection.sendPacket( Packet ) concurrently. For my current code, I am invoking a List of Callables (max 3) in a serial fashion. Each Callable sends/receives XMPP…
Jacques René Mesrine
  • 46,127
  • 27
  • 66
  • 104