Bug 494625

Summary: Sharing URLs to phone only works if the app is in foreground
Product: [Applications] kdeconnect Reporter: Francesco <muziofg>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED FIXED    
Severity: normal CC: andrew.g.r.holmes, rmallah29
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Android   
OS: Android 14.x   
Latest Commit: Version Fixed/Implemented In: 1.32.7
Sentry Crash Report:

Description Francesco 2024-10-12 23:57:06 UTC
SUMMARY
I've experienced this bug days ago, for the first time, after the update to v1.32.4
now using 1.32.5 I've performed multiple tests on various devices
Strangely this bugs affect kdeconnect on Android 14 but not same version, configured with the same options/plugins, running on Android 8.1

STEPS TO REPRODUCE
1. if  kdeconnect is in foreground close it or put the app in background
2. optionally you can check that smartphone is reachable with the terminal command
 kdeconnect-cli -d $device_id --ping
3. on a terminal share an url link with the command
kdeconnect-cli -d $device_id --share https://httpbin.org

OBSERVED RESULT
kdeconnect on Android 14 smartphone shows me a notification for the ping, but not react on url shared

EXPECTED RESULT
shows ping notification, then
opening the url shared on default browser, maybe shows a notification about it (see additional information)

SOFTWARE/OS VERSIONS

Linux: Debian 12
Kdeconnect on Plasma: 22.12.3
Kdeconnect on Android: 1.32.5
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
With the introduction of the feature to make a sharing pending until the device is newly online I see also that kdeconnect starts notify me all links received.
Now with app in foreground I see the browser opening with my desired URL but I didn't see any notifications about it. I don't know if it's related.
Also I discovered the bug #494336, who also affects the same plugin, do the strange behaviour descripted on Android 14 but not on Android 8.1. I don't know if it's related.
Comment 1 Francesco 2024-10-13 00:44:04 UTC
I can also add a test, between the two android phones (kdeconnect updated to the last version): 
share an URL from Android 14 to Android 8 works as expected
share an URL from Android 8 to Android 14 works only if on Android 14 kdeconnect is in foreground
Comment 2 Francesco 2024-10-14 19:19:10 UTC
last update, v1.32.7, fixes this bug
Comment 3 Antonio Rojas 2025-04-03 13:59:04 UTC
*** Bug 502358 has been marked as a duplicate of this bug. ***