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
4
votes
2 answers

smack for android fails when using proguard

I am using the smack library (4.1.2) in my Android app to connect to an XMPP server. It runs perfectly well when the code is NOT minified (ie with proguard). But in release mode, with proguard enabled, the app crashes as soon as it connects to the…
Steve
  • 395
  • 2
  • 12
4
votes
4 answers

Duplicate messages receiving in android smack 4.1

I have been trying to create an android chat app using smack 4.1. Message sending and receiving is working fine, but the problem is same message is getting several times with in the mXmppConnection.addAsyncStanzaListener.I don't know if i have…
Nidheesh
  • 433
  • 10
  • 20
4
votes
3 answers

Smack 4.1: Exception reloading roster

I keep getting the same error message over and over again. At first I thought it was an issue with timeout so i set .setPacketReplyTimeout(15000);still it just happens to wait for longer then shows the same error message. On deeper findings, I found…
Tunde Dev
  • 163
  • 1
  • 1
  • 10
4
votes
1 answer

"bad_auth is not a constant in org.jivesoftware.smack.sasl.SASLError" exception using Smack 4.1

Related Question: Initialization exception "NoClassDefFoundError: javax.naming.directory.InitialDirContext" when using Smack 4.1 on Android I am using Smack 4.1.1 in my Android app and I am getting the following exception - 05-19 21:38:31.141 …
0xC0DED00D
  • 19,522
  • 20
  • 117
  • 184
4
votes
1 answer

Initialization exception "NoClassDefFoundError: javax.naming.directory.InitialDirContext" when using Smack 4.1 on Android

I am trying to use Smack for my project. I have previously used aSmack in some of my earlier projects which worked really well. However Smack is giving me weird exceptions. Here's my initialization code looks like - public void init(String…
0xC0DED00D
  • 19,522
  • 20
  • 117
  • 184
4
votes
5 answers

Not able to connect Android client with local XMPP server

This is with regards to post here I am able to connect my PC to the local tigase server setup locally(I am using Smack API). Now I am facing problems when I want to connect Android Phone to that server over Wi-Fi. I am able to connect to the local…
Ameya Phadke
  • 923
  • 1
  • 13
  • 18
4
votes
1 answer

Smack 4.1 SASL authentication error

I am using Smack 4.1 native library for android to develop a chat application. I'm able to set a connection between my application and my server but I'm getting SmackException regarding SASL authentication while logging in. Points to be…
Taimur Hassan
  • 2,304
  • 1
  • 15
  • 19
4
votes
2 answers

SmackException$NoResponseException thrown when calling XMPPTCPConnection.login (Smack-4.1.0)

Environment: Server : OpenFire v3.9.3. Client OS : Linux Server OS : Linux Java : 1.8.0_40 Smack : smack-core-4.10, smack-im-4.1.0, smack-tcp-4.1.0, smack-sasl-provided-4.1.0 Here is my test client code: public class XMPPClientTest { public…
preston.m.price
  • 646
  • 1
  • 10
  • 17
4
votes
0 answers

Smack Android - SOCKS5 negotiation failed

I've been struggeling with the following problem for a long time, but couldn't solve it at all. Im trying a file transfer via xmpp using smack for Android with the following code: fTManager = FileTransferManager.getInstanceFor(connection); …
Piuma
  • 41
  • 3
4
votes
2 answers

How to enable stream management in ejabberd server?

I am developing an chat application in android with ejabberd server and smack 4.1.0 beta 2. In that I want to use streammanagement(XEP-0198). In Installation and operation guide of ejabberd http://www.process-one.net/docs/ejabberd/guide_en.pdf it…
Michael Jaison
  • 251
  • 1
  • 3
  • 11
4
votes
2 answers

using XMPP for user location

I want to create an application for Android that enables me to get the geolocation of a user. This has to be made as a client-server app and for the server side I'm using OpenFire. For getting the user's location I would have to use XEP-0080, right?…
Robert
  • 41
  • 1
  • 2
4
votes
2 answers

service unavailable response from server while sending custom IQ

I am trying to send custom information with IQ in asmack from android. So I am using below code to send the custom IQ message. public void onClick(View arg0) { CustomIQ req = new CustomIQ(); req.myData="Hello world"; …
kavuru
  • 379
  • 3
  • 4
  • 14
4
votes
1 answer

smack 4.1 Openfire Sample example

I have been using smack 3.4 for my web portal. Also used asmack 3.4 for my android app (aSmack development stopped some years back but there where some unofficial jars that i used. Faced issues with file upload and group chat with this it so want to…
razor_4040
  • 73
  • 1
  • 4
4
votes
3 answers

How to connect XMPP bosh server using java smack library?

I have working xmpp client on webapp using strophe.js ,as per my use case scenario i have to switch to different pages rapidly Current approach is not secure as jid and password is visible in java script ,I was finding work around to implement…
Dev
  • 2,326
  • 24
  • 45
4
votes
4 answers

How to enable the XEP-0199 in Smack?

I'm using aSmack. My app listens a chatroom and reacts to the messages but it never send a message. The app doesn't receive more messages if the chatroom remains in silence for a while and then a new message is sent. I researched and I think that…
Brais Gabin
  • 5,827
  • 6
  • 57
  • 92