guardianproject / ChatSecureAndroid

This project has ended, but ChatSecure iOS continues. For Android, please use Conversations or Zom instead
https://chatsecure.org/blog/chatsecure-conversations-zom/
Apache License 2.0
1.07k stars 522 forks source link

XMPPConnection.connect won't return when running in Android 6.0 (Marshmallow) #728

Closed clementcho closed 8 years ago

clementcho commented 8 years ago

Dear Admin, I have been working on ChatSecure and I have convert part of the code to compile in Android 6 SDK. The Code is compiled but the software is stuck in login procedure. The software didn't freeze or hang. The Account just stay in "Signing in". I trace down to the (MyXMPPConnection) mConnection.connect() (XmppConnection.java line 1486) method won't return. I am suspecting the asmack-android8 is not compatible with Android 6.0. and I have been trying to upgrade it to Smack 4.1.5 or asmack-android-16. They both come back with compile error that missing library, such as org.jivesoftware.smack.PacketListener; org.jivesoftware.smack.Roster;... are ones of many that is not present in the new library.

I am wondering if you guys already have a solution for this problem or working on it. My test device is Nexus 6 in Android 6.0. The Chatsecure in Playstore has the same problem of logging in.

Thanks, Clement

chseluv commented 8 years ago

I confirm the issue. I'm going to gather details from users and if I learn something useful I will provide it. Maybe this issue is related to this problem https://github.com/guardianproject/ChatSecureAndroid/issues/718

adahary commented 8 years ago

Should the current ChatSecure-latest.apk from direct download link has this fix and therefore will be able to login on an Android.6.M device?