smack

Smack and SASL Authentication error - No known authentication mechanisims

拥有回忆 提交于 2019-12-07 10:50:09
问题 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 authentication mechanisims. I tried all kind of combinations of user credentials but so far no luck. When trying to connect to the server with Pidgin or Adium al is ok. Any clue what i am missing in the code? XMPPTCPConnectionConfiguration config =

filetransfer in android through xmpp?

给你一囗甜甜゛ 提交于 2019-12-07 07:41:56
问题 I am just trying to transfer a file through xmpp.I am using asmack lib.I am getting exception below. E/AndroidRuntime( 332): FATAL EXCEPTION: main E/AndroidRuntime( 332): java.lang.NullPointerException E/AndroidRuntime( 332): at org.jivesoftware.smackx.bytestreams.socks5.Socks5BytestreamManager.enableService(Socks5BytestreamManager.java:704) E/AndroidRuntime( 332): at org.jivesoftware.smackx.bytestreams.socks5.Socks5BytestreamManager.activate(Socks5BytestreamManager.java:696) E/AndroidRuntime

smack connect to xmpp server with previous stream id

旧街凉风 提交于 2019-12-07 06:26:01
问题 I'm building a chat application using xmpp over Ejabbered for server and smack for android client I've established connecting , login , send and receiving messages ,then I've faced a problem with user network disconnecting and reconnecting , which has been solved by Reconnecting Manger in smack and xmpp-0198, however there is a case where i need to create a new connection in smack but use the previous session (stream) to get all the messages stored in that session (they don't get stored to

How to create a jabber/XMPP proxy/logging service?

孤街醉人 提交于 2019-12-07 05:19:28
问题 I am working for a company that is using Google Chatback (anonymous chat with a support employee in my company's case) as the main chat service provider. This service uses the XMPP (formerly known as Jabber) protocol for sending and receiving messages. Our company has ten support employee accounts, and they are accessible through the chatback service we have used on our website. The employees use both Mac OSX and Windows, along with different clients on the different OSes. The chat is also

(a)Smack returns “service-unavailable (503)” error at login()

混江龙づ霸主 提交于 2019-12-07 05:09:38
问题 I'm trying to implement a simple jabber messenger on Android using asmack library. Here's the code: public boolean login() { if (connection != null && connection.isConnected()) { Log.i("XMPP", connection.getHost()); try { connection.login(USERNAME, PASSWORD); } catch (XMPPException e) { e.printStackTrace(); return false; } return true; } return false; } Exception I get after connection.login() (connection looks fine): service-unavailable(503) at org.jivesoftware.smack.NonSASLAuthentication

Check if a user exist on server in XMPP with (a)smack

你。 提交于 2019-12-07 02:51:47
问题 I'm working on a chat application using asmack as a library and on android platform. Is there is any way that before adding friend in Roster can I check that friend exist on server or not? 回答1: I Found the answer : UserSearchManager search = new UserSearchManager(mXMPPConnection); Form searchForm = search .getSearchForm("search." + mXMPPConnection.getServiceName()); Form answerForm = searchForm.createAnswerForm(); answerForm.setAnswer("Username", true); answerForm.setAnswer("search", user);

What are the recommended ProGuard rules for Smack 4.1?

ε祈祈猫儿з 提交于 2019-12-06 20:01:19
问题 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 intended for 4.0.x). I could not find any references to what the proper proguard rules to use for 4.1.x are, could anyone shed light on this? 回答1: What are the proper Proguard rules for Smack 4.1 when building an Android release apk? Depends on what

building, authenticating, and parsing with the Smack library

别等时光非礼了梦想. 提交于 2019-12-06 12:40:14
问题 I am trying to connect to Firebase Cloud Messaging by using smack library. I don't have much knowledge of the Smack API. After reading the Firebase docs, I see that the connection must be authenticated and there are a series of responses back and forth between "app server" and Cloud Connection Servers. According to the docs, I must create a Sasl Plain authentication. I don't know how to implement this. But after reading some posts by other StackOverFlow users I see that I must create an

Not able to get LastActivity of a jabberId

北慕城南 提交于 2019-12-06 10:16:59
问题 I am trying to get last offline time of a particular jabberId by this piece of code. LastActivityManager lActivityManager = LastActivityManager.getInstanceFor(MessageService.getConnection()); lActivityManager.isLastActivitySupported(to + "@localhost"); Log.v(TAG, "Last Activity: " + lActivityManager.getLastActivity(to + "@localhost")); LastActivity activity = lActivityManager.getLastActivity(to + "@localhost"); But I am keep getting service-unavailable exception. I have checked the server

smack message sent status

老子叫甜甜 提交于 2019-12-06 07:59:31
问题 I am using smack and openfire for create chat app in android . for message status I have no problem with delivered and displayed message in other client (double check). I will send a simple json message like bellow to sender: {"delivery":timestapmp} and parse it and double check messages with lower than timestamp that sent before. the problem is about sent status (one check). When i send message the server no response anything that message has sent . is it possible in smack to send message