Accounts not logging back in after mobile network disconnect
Mothsdroyp opened this issue · 2 comments
First - thank you for the great work on this open source program!
Android 10, Samsung Galaxy S9, atalk from F-droid
After disconnect due to mobile network, multiple accounts do not reconnect when mobile network becomes available again. Manually turning account on and off again causes a sign-in. Keep alive option is on with optimization for mobile network.
Related comment: It would be nice to have the persistent indicator change color when any enabled account is offline.
Thanks again for the nice program.
I just did a test on my Note-10 device with 4 registered user accounts by simulation network lost:
a.. With all 4 user accounts logged in via wifi
b. Turn off Wifi Connection so the device auto reconnect via Mobile network
c. Capture aTalk debug trace
From the debug log, all the 4 disconnected users have indeed successfully re-connect and login to the network, indicated by XMPPConnection authenticated
Please refer to the following online help: https://cmeng-git.github.io/faq.html
[20180710] XEP-0198:Stream Management and ReConnection Manager
The Global status indicates only the registered account with the highest present status (e.g online, away, do not disturb etc) or Offline if none login. If you need to known individual user account login status, just click the Global indicator, to see the drop down menu and status of all the registered accounts.
============== aTalk debug log on Note-10 ==========
// Network changes cause account disconnection
2020-05-23 07:36:45.618 29440-21525/org.atalk.android D/SMACK: XMPPConnection closed due to an exception (XMPPTCPConnection[swordfish@atalk.sytes.net/atalk] (0))
2020-05-23 07:36:45.625 29440-21529/org.atalk.android D/SMACK: XMPPConnection closed due to an exception (XMPPBOSHConnection[cmeng-atalk@dismail.de/atalk] (1))
2020-05-23 07:36:45.628 29440-21526/org.atalk.android D/SMACK: XMPPConnection closed due to an exception (XMPPTCPConnection[swordfish@atalk.org/atalk] (2))
2020-05-23 07:36:45.649 29440-21530/org.atalk.android D/SMACK: XMPPConnection closed due to an exception (XMPPTCPConnection[parrot@neko.im/atalk] (7))
// Reconnection Manager kicks in
2020-05-23 07:36:46.642 29440-21546/org.atalk.android D/SMACK: XMPPConnection (XMPPTCPConnection[swordfish@atalk.sytes.net/atalk] (0)) will reconnect in 8
2020-05-23 07:36:46.643 29440-21548/org.atalk.android D/SMACK: XMPPConnection (XMPPBOSHConnection[cmeng-atalk@dismail.de/atalk] (1)) will reconnect in 9
2020-05-23 07:36:46.647 29440-21549/org.atalk.android D/SMACK: XMPPConnection (XMPPTCPConnection[swordfish@atalk.org/atalk] (2)) will reconnect in 13
2020-05-23 07:36:46.651 29440-21553/org.atalk.android D/SMACK: XMPPConnection (XMPPTCPConnection[parrot@neko.im/atalk] (7)) will reconnect in 4
2020-05-23 07:36:47.643 29440-21546/org.atalk.android D/SMACK: XMPPConnection (XMPPTCPConnection[swordfish@atalk.sytes.net/atalk] (0)) will reconnect in 7
2020-05-23 07:36:47.643 29440-21548/org.atalk.android D/SMACK: XMPPConnection (XMPPBOSHConnection[cmeng-atalk@dismail.de/atalk] (1)) will reconnect in 8
2020-05-23 07:36:47.647 29440-21549/org.atalk.android D/SMACK: XMPPConnection (XMPPTCPConnection[swordfish@atalk.org/atalk] (2)) will reconnect in 12
2020-05-23 07:36:47.651 29440-21553/org.atalk.android D/SMACK: XMPPConnection (XMPPTCPConnection[parrot@neko.im/atalk] (7)) will reconnect in 3
2020-05-23 07:36:48.643 29440-21548/org.atalk.android D/SMACK: XMPPConnection (XMPPBOSHConnection[cmeng-atalk@dismail.de/atalk] (1)) will reconnect in 7
2020-05-23 07:36:48.643 29440-21546/org.atalk.android D/SMACK: XMPPConnection (XMPPTCPConnection[swordfish@atalk.sytes.net/atalk] (0)) will reconnect in 6
2020-05-23 07:36:48.648 29440-21549/org.atalk.android D/SMACK: XMPPConnection (XMPPTCPConnection[swordfish@atalk.org/atalk] (2)) will reconnect in 11
2020-05-23 07:36:48.651 29440-21553/org.atalk.android D/SMACK: XMPPConnection (XMPPTCPConnection[parrot@neko.im/atalk] (7)) will reconnect in 2
2020-05-23 07:36:49.644 29440-21546/org.atalk.android D/SMACK: XMPPConnection (XMPPTCPConnection[swordfish@atalk.sytes.net/atalk] (0)) will reconnect in 5
2020-05-23 07:36:49.644 29440-21548/org.atalk.android D/SMACK: XMPPConnection (XMPPBOSHConnection[cmeng-atalk@dismail.de/atalk] (1)) will reconnect in 6
2020-05-23 07:36:49.648 29440-21549/org.atalk.android D/SMACK: XMPPConnection (XMPPTCPConnection[swordfish@atalk.org/atalk] (2)) will reconnect in 10
2020-05-23 07:36:49.652 29440-21553/org.atalk.android D/SMACK: XMPPConnection (XMPPTCPConnection[parrot@neko.im/atalk] (7)) will reconnect in 1
2020-05-23 07:36:50.644 29440-21548/org.atalk.android D/SMACK: XMPPConnection (XMPPBOSHConnection[cmeng-atalk@dismail.de/atalk] (1)) will reconnect in 5
2020-05-23 07:36:50.644 29440-21546/org.atalk.android D/SMACK: XMPPConnection (XMPPTCPConnection[swordfish@atalk.sytes.net/atalk] (0)) will reconnect in 4
2020-05-23 07:36:50.649 29440-21549/org.atalk.android D/SMACK: XMPPConnection (XMPPTCPConnection[swordfish@atalk.org/atalk] (2)) will reconnect in 9
// Reconnection taking place at reconnection time=0
2020-05-23 07:36:50.652 29440-21553/org.atalk.android D/SMACK: XMPPConnection (XMPPTCPConnection[parrot@neko.im/atalk] (7)) will reconnect in 0
2020-05-23 07:36:53.215 29440-21553/org.atalk.android D/SMACK: XMPPConnection authenticated (XMPPTCPConnection[parrot@neko.im/atalk] (7)) and resumed
2020-05-23 07:36:54.646 29440-21546/org.atalk.android D/SMACK: XMPPConnection (XMPPTCPConnection[swordfish@atalk.sytes.net/atalk] (0)) will reconnect in 0
2020-05-23 07:36:55.209 29440-21546/org.atalk.android D/SMACK: XMPPConnection authenticated (XMPPTCPConnection[swordfish@atalk.sytes.net/atalk] (0)) and resumed
2020-05-23 07:36:55.648 29440-21548/org.atalk.android D/SMACK: XMPPConnection (XMPPBOSHConnection[cmeng-atalk@dismail.de/atalk] (1)) will reconnect in 0
2020-05-23 07:36:59.376 29440-21548/org.atalk.android D/SMACK: XMPPConnection authenticated (XMPPBOSHConnection[cmeng-atalk@dismail.de/atalk] (1))
2020-05-23 07:36:59.653 29440-21549/org.atalk.android D/SMACK: XMPPConnection (XMPPTCPConnection[swordfish@atalk.org/atalk] (2)) will reconnect in 0
2020-05-23 07:37:00.037 29440-21549/org.atalk.android D/SMACK: XMPPConnection authenticated (XMPPTCPConnection[swordfish@atalk.org/atalk] (2)) and resumed
Thank you for checking. I must be having a different issue given your test and will close the issue.