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
14
votes
9 answers

How to register a new user on XMPP using (a)Smack library

I have set up a xmpp server and android client using the great post here... I have some pre defined users set up in the xmpp server and i could login with those credentials. Now, from my app i want to register as new users to the xmpp server through…
Rahul Kalidindi
  • 4,666
  • 14
  • 56
  • 92
14
votes
5 answers

SASLError using PLAIN: not-authorized

I am trying to shift my app from aSmack to Smack 4.1.1. However I am having trouble using the same server and login details in the case of Smack while on aSmack it is working excellently. Here's my old code of login in aSmack - void…
0xC0DED00D
  • 19,522
  • 20
  • 117
  • 184
13
votes
4 answers

What is the difference between Smack and aSmack?

I am not able to use Smack on Android whereas aSmack works perfectly? When compared the source code it looks somewhat similar, where does the difference comes from? What is the difference between Smack and aSmack?
SPB
  • 4,040
  • 16
  • 49
  • 62
12
votes
1 answer

Keep XMPP connection (using asmack) alive on Android

I'm developing an application that receives push notifications via XMPP ( I know C2DM, but it has some limitations and I can't use because of it ), the problem is the connection that after some time is garbage collected and I can't send push…
danilodeveloper
  • 3,840
  • 2
  • 36
  • 56
12
votes
5 answers

How to use Smack 4.2 for connecting to ejabberd?

I have changed my app to use Smack 4.2 replacing Smack 4.1 But I'm getting an error in the config.setServiceName(); The parameter to this method has been changed from String to DomainBareJid. I don't know how to use DomainBareJid and setServiceName…
Laxman Marothiya
  • 383
  • 3
  • 13
12
votes
3 answers

How to implement message read status like whatsapp blue tick mark?

I am developing one application in that chatting is one module, for chatting i am using xmpp. when i am sending message i am getting that message delivery status using…
NareshRavva
  • 823
  • 3
  • 21
  • 50
12
votes
2 answers

how to get mobile online status of the facebook user using smack?

I am developing Facebook chat application using smack. Here I want to get online user status of both mobile user's & website user's, and how can I differentiate both of them. If a user send message ,how can I differentiate he is mobile user (or)…
user2709752
  • 488
  • 6
  • 26
11
votes
2 answers

how to do voice/video chat in android using smack api's

We are already using jabber smack api for chating in our application. now we are planing to upgrade my app by adding voice/video chat. I think its possible by using the jingle jabber smack but i am not getting any api's or sample code in jave for…
Nithi
  • 141
  • 1
  • 2
  • 6
11
votes
4 answers

How to send custom XML data using the Smack library?

I'm using the Smack API in Java to connect to my XMPP server. I want to send a customized message packet like this: hi
BinRoot
  • 694
  • 2
  • 8
  • 21
11
votes
3 answers

Error on smack 4.2.0 : IN AAAA yielded an error response NX_DOMAIN

i start openFire and test it with spark everything is ok but when i try to connect with smack 4.2.0 in android studio i got this error: Ljavax/naming/directory/InitialDirContext; and my dependencies is this: compile…
sadegh
  • 153
  • 2
  • 14
11
votes
2 answers

Smack Client - User is still 'online' although connection aborted

I experience a quite strange behavior using smack to build a small XMPP Client/Bot. I set up the connection as well as a ConnectionListener and a ChatManagerListener. This works quite fine and I can then chat with my application which is running on…
signpainter
  • 720
  • 1
  • 7
  • 22
10
votes
5 answers

XMPP with Java Asmack library supporting X-FACEBOOK-PLATFORM

I'm trying to make a Facebook Chat on Android with the Smack library. I've read the Chat API from Facebook, but I cannot understand how I have to authenticate with Facebook using this library. Can anyone point me how to accomplish this? Update:…
Adrian
  • 721
  • 2
  • 11
  • 34
10
votes
5 answers

Can I get online users in my friend list via Smack?

Can i get online users in my friend list via Smack API? Is it possible? I am working on app which have chat between users. I had successfully created chat application example just entering name of friend and send chat, but now I want online friends…
chikka.anddev
  • 9,569
  • 7
  • 38
  • 46
10
votes
1 answer

How to manage PubSub notifications send while offline in XMPP?

How to get offline message in PubSub? Using the Smack library. after searching I found an answer which looks like this: // Create a pubsub manager using an existing XMPPConnection PubSubManager mgr = PubSubManager.getInstanceFor(con); // Get the…
Tushar Kotecha
  • 764
  • 2
  • 7
  • 27
10
votes
1 answer

Delayed group messaging in openfire

I have built a chat application using an Openfire (xmpp) server. One-to-one person chats are working fine and the messages are delivered instantly. But when we send a message inside a group, the first message gets delayed and the second message is…
Surya Prakash Kushawah
  • 3,185
  • 1
  • 22
  • 42
1
2
3
98 99