Bug 458940

Summary: Turning off iOS display causes disconnect and failure to reconnect
Product: [Applications] kdeconnect Reporter: ptmoley
Component: ios-applicationAssignee: Lucas W. <lucas.wang>
Status: CONFIRMED ---    
Severity: major CC: public-apollonian
Priority: NOR    
Version: 22.08.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description ptmoley 2022-09-10 00:22:03 UTC
SUMMARY
After pairing is complete, if I turn off the display of iOS device and back on, I can no longer connect with my desktop. In order to connect again, I need to unpair from the desktop application and "Erase saved devices cache" on my iOS device.

***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Pair iOS device with desktop
2. Turn display off on iOS device
3. Turn display on on iOS device

OBSERVED RESULT
On the iOS app:
My desktop will go to the "Remembered Devices" section of the app with a red wifi symbol next to it. If I perform a "Refresh Discovery" on the app, my desktop briefly goes into the "Connected Devices" for less than half a second before returning to "Remembered Devices".

On the desktop application:
My iOS device shows up under the "Remembered" column as "Device disconnected" with the message: "This device is not reachable". On my KDE Connect Settings page, if I hit Refresh, it actually performs a refresh on the iOS app as well (on the iOS app my desktop jumps briefly to "Connected Devices")

EXPECTED RESULT
After turning iOS display back on, I expect phone to automatically reconnect to desktop app (or perhaps never to be disconnected in the first place?)

SOFTWARE/OS VERSIONS
Windows: n/a
macOS: n/a
Linux/KDE Plasma: 19.7-arch1-1 (output of uname -r)
(available in About System)
KDE Plasma Version: n/a (using xfce4)
KDE Frameworks Version: n/a
Qt Version: qt5-base 5.15.6+kde+r165-1

ADDITIONAL INFORMATION
Comment 1 Apollo Zhu 2023-01-31 02:01:13 UTC
Tracked as https://phabricator.kde.org/T15939