redsolution / xabber-android

Open-source XMPP client for Android
http://xabber.com
Other
1.82k stars 815 forks source link

Connection error on Jellybean #913

Open echaskaris opened 4 years ago

echaskaris commented 4 years ago

org.jivesoftware.smack.SmackException$ConnectionException: The following addresses failed at com.xabber.xmpp.smack.XMPPTCPConnection.connectUsingConfiguration(Unknown Source) at com.xabber.xmpp.smack.XMPPTCPConnection.connectInternal(Unknown Source) at org.jivesoftware.smack.AbstractXMPPConnection.connect(Unknown Source) at com.xabber.android.data.connection.ConnectionThread.connectAndLogin(Unknown Source) at com.xabber.android.data.connection.ConnectionThread$1.run(Unknown Source) at java.lang.Thread.run(Thread.java:856)

Phone doesn't have Google Play Services Works on Kitkat phone with Google Play Services

andrewnenakhov commented 4 years ago

You might have encountered a rare bug in connection code, try latest update to Xabber Beta (on Google Play). Please, report here if it helps (or not).

echaskaris commented 4 years ago

Doesn't work. Now I get no response exception, while waiting for tls

popovvitaly commented 4 years ago

There are various problems with connection those can lead to this exception. Cause you doesn't provided another data, we can only advice to check your connection settings: host address, port, proxy, etc or maybe even reinstall app. Or you can provide log-files, steps what you do, and then we try to locate a problem with more accuracy.

echaskaris commented 4 years ago

Here Xabber_2.6.6.645_2019-11-28_15-27-16-1517379024.txt

echaskaris commented 4 years ago

Do you see anything in the log?

echaskaris commented 4 years ago

@andrewnenakhov @popovvitaly Sorry to ping you but I'd like to get xabber to work

popovvitaly commented 4 years ago

Android before 5.0 can't enable TLS by default without using Google Play Services. I think we can't easily fix it, sorry.

echaskaris commented 4 years ago

Ok, what about SSL? I can't get that to work either. Xabber_2.6.6.645_2019-12-16_12-08-29-2124424731.txt

Also I found this https://stackoverflow.com/questions/37705367/how-do-i-get-tls-1-2-to-work-in-android-4-4-without-the-help-of-google-play-serv

bleedingcrow commented 4 years ago

@echaskaris spot on

The newest TLS does not require an android version "upgrade"