FAQ Database Discussion Community

Cannot connect to local XMPP server using aSmack

I am trying connect to a local XMPP server (Vysper) from an Android App using this code: // ... ConnectionConfiguration connectionConfig = new ConnectionConfiguration("", 5222); // load file from "Pictures" directory from Internal Memory File file = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); file.mkdirs(); connectionConfig.setSecurityMode(ConnectionConfiguration.SecurityMode.required); System.setProperty("javax.net.ssl.trustStore", file + "/clientkeystore"); Log.i("Info",...

Error code 503 on transferring file using xmpp

I am trying to send an image file using smack and openfire xmpp. For this I am using FileTransferManager class. To use FileTransferManager class I am using asmack-android-6.jar. I followed this link to do file sharing. This issue is also shared in comments below on this tutorial but no good...

Asmack login issue on Android 5.0 and above

I am facing an asmack SSL connection issue on Android 5.0 and above. I think it's related to security. I resolved it by disabling following before connecting: config.setSASLAuthenticationEnabled(false); config.setSecurityMode(SecurityMode.disabled); But I do want security enabled. How to resolve it without disabling setSecurityMode? I looked the changes 5.0 http://developer.android.com/about/versions/android-5.0-changes.html#ssl But can't...

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 startConnect(boolean sslFlag) throws XMPPException,...

Android connect to IMAP with OAuth(2)

Please someone help me!... Tell me, which libraries or jars and others can be create a connection between Android and Google IMAP with OAuth(2) "protocol". I downloaded 999 jars and other libaries likes these: javax mail javamail javamail-android (additionnal.jar and activition.jar downloaded too) asmack-android etc... But the problem is (all...

How can I upload user's profile picture to server when registering new user ?

I am developing an android app using XMPP (Openfire) . User can register new account from that app and they can set their profile picture in register form. I want to know how can I save that profile picture to Openfire server.

Samck 4.1 error while connecting to openfire server (org.jivesoftware.smack.sasl.SASLErrorException: SASLError using DIGEST-MD5: not-authorized)

public void connect(){ AsyncTask connectionThread = new AsyncTask(){ @Override protected Boolean doInBackground(Void... arg0){ boolean isConnected = false; StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy); XMPPTCPConnectionConfiguration.Builder configBuilder = XMPPTCPConnectionConfiguration.builder(); configBuilder.setUsernameAndPassword("ahsan", "vbase123"); configBuilder.setSecurityMode(ConnectionConfiguration.SecurityMode.disabled);...

Create a group on openfire from an Android app

I developed a chat application (Android platform, native Android development) using asmack library. Also I have a task to create from the application group in openfire server. I don't know how to do it. And also additional question: is it possible or not? ...

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 DeliveryReceiptManager. DeliveryReceiptManager.getInstanceFor(connection).enableAutoReceipts(); DeliveryReceiptManager.getInstanceFor(connection).addReceiptReceivedListener(new ReceiptReceivedListener() { @Override public void onReceiptReceived(String arg0, String arg1, String arg2) { Log.v("app", arg0 + ", "...

Android Smack MessageEventManager not compiling

I am using smack API with openfire server to make an android app. I am trying to implement a MessageEventManager and MessageEventProvider to my app so it will tell me if the message was delivered or not though when i try to declare it a MessageEventManager, it is not compiling...

Typing Status Smack 4.1

Hey I am trying to get typing status when the other person starts writing even though it is returning an empty message with the state as a message but it is coming from proccessMessage method. Shouldn't it be returned in the stateChanged? I haven't enabled any PacketProvider though, Do i...