Bug 492882 - Notifications without a 'quick action' can't be cleared
Summary: Notifications without a 'quick action' can't be cleared
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (other bugs)
Version First Reported In: 23.08.5
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-09 13:24 UTC by Stoyan Georgiev
Modified: 2024-09-09 13:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stoyan Georgiev 2024-09-09 13:24:50 UTC
SUMMARY

I’m successfully receiving notifications from my mobile phone on my desktop.

For a few of the applications (FairMail, Notion, Viber and a few more), when I receive a notification and I clear it on my desktop, it gets cleared on the mobile phone as well.

But for the majority of applications, the notification pops out, but even after clearing from the PC - they remain on the mobile device.

I noticed that notifications that have a 'quick action' such as "reply", "mark as read", "delete", etc. - there is no problem.

For all the notifications that have no 'quick action' - there is a problem. 

I tried some information gathering on my side via "dbus-monitor interface=org.freedesktop.Notifications"

That's how a "good" notification looks like:

signal time=1725722554.180846 sender=:1.45 -> destination=(null destination) serial=16839 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=ActionInvoked
   uint32 193
   string "1"
method call time=1725722554.569287 sender=:1.60 -> destination=org.freedesktop.Notifications serial=892 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=CloseNotification
   uint32 193
signal time=1725722554.569969 sender=:1.45 -> destination=(null destination) serial=16840 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=NotificationClosed
   uint32 193
   uint32 3

And that's how a "bad" notification looks like:

signal time=1725722811.298946 sender=:1.45 -> destination=(null destination) serial=16931 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=NotificationClosed
   uint32 197
   uint32 2

STEPS TO REPRODUCE
1. Receive a notification on the Android device that offers no "Quick action"
2. Press "X" or "Clear all notifications" from the Notification Center on the desktop.
3. The notification will clear on the desktop, but not on the Android device.

OBSERVED RESULT
The notifications clear from the desktop, but not from the mobile device.

EXPECTED RESULT
The notifications to clear on the mobile device as well.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux Mint 22 Cinnamon

KDE Connect: 23.08.5
Android device: Samsung S24 Ultra, Android 14, OneUI 6.1

ADDITIONAL INFORMATION

I also decided to test with KDE Plasma so I ran Kubuntu via live USB, paired with my Android device and tried to reproduce the bug. On KDE Plasma everything was working properly. So the problem persists on Linux Mint 22 Cinnamon, but not on Kubuntu.