I am using asmack-android-8-source-4.0.6
when i try to connect to the server whether it is openFire or Ejabbered i get this exception
org.jivesoftware.smack.SmackException$NoResponseException
here's my code:
SmackAndroid.init(getApplicationContext());
ConnectionConfiguration conConfig = new ConnectionConfiguration(HOST, PORT);
conConfig.setDebuggerEnabled(true);
connection = new XMPPTCPConnection(conConfig);
try {
connection.connect();
Log.i("AppName", "CONNECTED TO " + connection.getHost());
}
when i call
connection.connect();
i get this exception :
org.jivesoftware.smack.SmackException$NoResponseException
note the i have tried the same code on asmack-android-19-0.8.10 and it works perfectly
i guess the issue is with the
XMPPTCPConnection
because in the asmack-android-19-0.8.10 i use
XMPPConnection
any help ?
I have found the problem all i did is adding this line:
and i was connected to server successfully
here's my configuration in the end :
try this: