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
10
votes
1 answer

Smack "Must have a local (user) JID set" error

Unable to understand why this error frequently comes and app gets crash. Below error: Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.studyboard/com.studyboard.ChatMessageActivity}:…
Anil Ravsaheb Ghodake
  • 1,587
  • 2
  • 27
  • 45
10
votes
3 answers

Smack 4.1 No Response within reply timeout

I am using the following code in my android app: Thread d = new Thread(new Runnable() { @Override public void run() { SmackConfiguration.setDefaultPacketReplyTimeout(10000); XMPPTCPConnectionConfiguration config =…
harveyslash
  • 5,906
  • 12
  • 58
  • 111
10
votes
2 answers

What are the recommended ProGuard rules for Smack 4.1?

What are the proper ProGuard rules for Smack 4.1 when building an Android release apk? Currently, I'm using the rules from aSmack 4.0.x from the README.asmack file on the aSmack github repository which is outdated (references old class names, and…
Ray W
  • 679
  • 4
  • 12
10
votes
3 answers

XMPP Connection with Smack 4.1 on Android Studio

I am trying to do an XMPP Connection with Smack 4.1.0 rc1 from https://github.com/igniterealtime/Smack I followed this guide: https://github.com/igniterealtime/Smack/wiki/Smack-4.1-Readme-and-Upgrade-Guide importing the Gradle. Source code: package…
kobbycoder
  • 682
  • 2
  • 10
  • 33
10
votes
3 answers

How to get Openfire chat history on Android device with aSmack?

I am developing a chatting application, where user will chats with one of the domain expert's group member. user uses my android app and domain expert uses spark web for chatting. I made Openfire setup and Spark web setup and developed Android…
Ganesh K
  • 2,623
  • 9
  • 51
  • 78
9
votes
2 answers

how to get user online or offline in asmack, android

Possible Duplicate: XMPP aSmack - How can I get the current user state (offline/online/away/etc.)? I am developing chat app on Android base on asmack lib. I display all the user on the ListView but I use an image to show online/offline user. But…
user1078574
  • 123
  • 1
  • 6
9
votes
1 answer

X-FACEBOOK-PLATFORM authentication with SMACK Java library using OAuth 2.0

First post here so please be gentle. I'm building a facebook chat client, using Smack library. I'm using X-FACEBOOK-PLATFORM method in order not to save any passwords. I had it working properly using oauth 1.0, and want to change it to 2.0, cause of…
alscu
  • 928
  • 9
  • 22
9
votes
1 answer

failed because: de.measite.minidns.hla.ResolutionUnsuccessfulException: Asking for xxxx. IN AAAA yielded an error response NX_DOMAIN

After I upgraded smack to 4.2.0 I am getting connection issue. The following addresses failed: 'xxxx:5222' failed because: de.measite.minidns.hla.ResolutionUnsuccessfulException: Asking for xxxx. IN A yielded an error response NX_DOMAIN,…
Jaspreet Chhabra
  • 1,431
  • 15
  • 23
9
votes
1 answer

Implementation of FCM with XMPP using Smack for Android

I am working with XMPP for implementing chat in my Android application and i have used Smack API for it. My Chat is working fine and i am saving all the chat messages on Android Device locally.Following are some problems that i am currently…
Avnish Choudhary
  • 828
  • 7
  • 15
9
votes
2 answers

SMACK XEP-313 Implementation

It is necessary to attach a 0313 XEP (0.2) http://xmpp.org/extensions/attic/xep-0313-0.2.html#sect-idp616432 in to SMACK/ASMACK. I create PacketExtension for this. public class Archive313 implements PacketExtension { static final public…
9
votes
1 answer

What should be the JID for a user in OpenFire Server?

Hi I am new to this: I have set up an Openfire Server and using Spark IM to test it. But for Android application code what should be the JID for the user in session: I have tried username@ip_address , username@ip_address/Smack ,…
Navdroid
  • 1,541
  • 3
  • 25
  • 52
9
votes
1 answer

Trying to log into XMPP server using Smack results in SASL "not authorized"

I'm trying to use Smack to log into a XMPP server. When trying to login I get the following Error : SASL authentication PLAIN failed: not-authorized I have been able to connect and log into the server using PSI-IM with the same credentials. This…
Shishigami
  • 441
  • 3
  • 7
  • 20
9
votes
8 answers

How to know Typing Status in XMPP openfire using Smack

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 { …
user2160008
  • 379
  • 2
  • 5
  • 20
9
votes
2 answers

send and receiving message using smack API

I have setup my open fire(jabber server) on local machine with two user testuser1 and testuser2 .using Spark client both users perform chat without any issue,it's nice. openfire IP -192.168.1.65 I want to use smack API(3.3.0) for send and receiving…
Sameek Mishra
  • 9,174
  • 31
  • 92
  • 118
9
votes
1 answer

XMPP "stream:error (conflict)" on login with (a)Smack

Currently i am working with xmpp/jabber chat for android.i just tried with Openfire and try to connect my jabber account.connection was successful.but i am not able to send any message.it shows some conflict error.please check the error log.give me…
Jithu P.S
  • 1,843
  • 1
  • 19
  • 32
1 2
3
98 99