Bug 450371

Summary: Notifications about video/audio being played on computer keep appearing when computer sleeps or becomes unreachable
Product: [Applications] kdeconnect Reporter: Sergio <sergio.callegari>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Sergio 2022-02-16 10:58:30 UTC
SUMMARY

When the computer is playing a video or some audio (e.g. in a browser), a notification appears on the connected android phone enabling its usage as a remote.

Unfortunately, if the computer is put to sleep or becomes unreachable (e.g., because one pauses the playing, locks the computer and walks out with the phone), the notification on the android phone becomes impossible to silence. You cancel it and it keeps appearing forever.

The android application should watch when a connected computer becomes unavailable and if there are notifications about it, accept that someone swipes them away and stop visualizing them over and over.


STEPS TO REPRODUCE
1. Connect android phone and a computer
2. Play video on firefox on the computer
3. Pause the video on firefox
4. Walk away with the phone

OBSERVED RESULT

You get a notification on the phone about the video being played. If you swipe it away it reappears. And reappears. And so on over and over until you kill kde connect on the phone and restart it.

EXPECTED RESULT

The phone application should be happy when you swipe away the notification the first time.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Manjaro / up to date
(available in About System)
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90
Qt Version: 5.15.2

ADDITIONAL INFORMATION

Android app 1.19