1
I am using asmack library for connect local XMPP server.
it connects properly with local server but it gives me problem
while login ..
{
SmackConfiguration.setPacketReplyTimeout(packetReplyTimeout);
ConnectionConfiguration cc = new ConnectionConfiguration("192.168.1.11",5222,"360degree");
/*cc.setSASLAuthenticationEnabled(false);
cc.setSecurityMode(SecurityMode.disabled);*/
connection = new XMPPConnection(cc);
try{
connection.connect();
Log.d("TAG1", "m in try1111111");
SASLAuthentication.supportSASLMechanism("PLAN",0);
connection.login("[email protected]","kutbi1");
Log.d("TAG1", "m in try12121212121212");
Presence presence = new Presence(Presence.Type.available);
presence.setMode(Presence.Mode.available);
presence.setStatus("Gone fishing");
Log.d("TAG2", "m in try2222");
connection.sendPacket(presence);
}
Same code is work for Facebook chat connection with XMPP.