Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

asmack SSL connection issue on Android 5.0

$
0
0

Hi all,

 

I have a problem about SSL secure connection blocked with asmack 4.0.5 on Android 5.0. I also tried smack 4.1 alpha 1, but got same blocked result.

 

Following code snippet is working fine on Android 4.4.4:

 

ConnectionConfiguration connConfig = new ConnectionConfiguration(XMPP_CONNECT_HOST,  XMPP_CONNECT_PORT, XMPP_SERVICE_NAME);

connConfig.setSecurityMode(ConnectionConfiguration.SecurityMode.enabled);

connConfig.setSocketFactory(new DummySSLSocketFactory());

XMPPConnection connection = new XMPPTCPConnection(connConfig);

connection.connect();

 

After upgrade to Android 5.0,  connection.connect() doesn't return and seems blocked.

 

I am still try to dig into the source code to find a solution, but I am happy to know if anyone has similar problems or has possible fixes already.

 

Thanks,

Johnny


Viewing all articles
Browse latest Browse all 10742

Trending Articles