Quantcast
Channel: Ignite Realtime: Message List
Viewing all articles
Browse latest Browse all 11413

Re: Smack 4.1 beta 1 connection issue

$
0
0

Hi Osman,

 

Google has done away with XMPP ever since it moved to Hangouts. So talk.google.com or mtalk.google.com will not work.

 

I was able to get the connect working with 4.1 Smack

 

SmackConfiguration.DEBUG=true;

 

 

        final XMPPTCPConnectionConfiguration connectionConfiguration = XMPPTCPConnectionConfiguration.builder()

                .setServiceName("chat.facebook.com").setHost("chat.facebook.com")

                .setPort(5222)

                .setCompressionEnabled(false)

                .setDebuggerEnabled(true)

               // .setSecurityMode(ConnectionConfiguration.SecurityMode.disabled)

                .build();

 

 

        mConnection = new XMPPTCPConnection(connectionConfiguration);

 

         in the onConnected callback of this connection, call mConnection.login("username","password")

 

You will successfully login to Facebook chat using this


Viewing all articles
Browse latest Browse all 11413

Trending Articles