When implementing XMPP with Android using Smack 4.1, I encounter this error in my logcat. This error has nothing to do with your code, but actually a setting for your google account (assuming you are using your hangout account for testing)
08-20 16:32:21.970 25575-25595/com.example.xmppsample I/System.out﹕ [socket][0] connection talk.google.com/64.233.188.125:5222;LocalPort=34746(30000)
08-20 16:32:21.970 25575-25595/com.example.xmppsample I/System.out﹕ [CDS]connect[talk.google.com/64.233.188.125:5222] tm:30
08-20 16:32:22.170 25575-25595/com.example.xmppsample I/System.out﹕ [socket][/192.168.0.4:34746] connected
08-20 16:32:25.240 25575-25595/com.example.xmppsample W/System.err﹕ org.jivesoftware.smack.sasl.SASLErrorException: SASLError using PLAIN: not-authorized
08-20 16:32:25.250 25575-25595/com.example.xmppsample W/System.err﹕ at org.jivesoftware.smack.SASLAuthentication.authenticationFailed(SASLAuthentication.java:365)
08-20 16:32:25.250 25575-25605/com.example.xmppsample I/System.out﹕ [CDS]close[34746]
08-20 16:32:25.250 25575-25605/com.example.xmppsample I/System.out﹕ close [socket][/0.0.0.0:34746]
Just enable this in:
https://www.google.com/settings/security/lesssecureapps
沒有留言:
張貼留言