https://bugs.kde.org/show_bug.cgi?id=520838

            Bug ID: 520838
           Summary: Notification feedback loop when both receive and send
                    notifications plugins are enabled
    Classification: Applications
           Product: kdeconnect
      Version First 26.04.1
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: desktop-application
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 192743
  --> https://bugs.kde.org/attachment.cgi?id=192743&action=edit
example

When KDE Connect is configured to both receive Android notifications on Plasma
and send desktop notifications back to Android, notifications mirrored from
Android are treated as normal
  desktop notifications and sent back to the same Android device. This creates
duplicate notifications on the phone.

  STEPS TO REPRODUCE
  1. Pair Android phone with KDE Connect on Plasma.
  2. Enable "Receive notifications" / "Show device's notifications on this
computer".
  3. Enable "Send notifications" / "Broadcast this computer's notifications".
  4. Receive any Android notification, for example WhatsApp.
  5. Observe the phone notification shade.

  OBSERVED RESULT
  The phone shows the original Android notification, plus a second KDE Connect
notification containing the same content.

  EXPECTED RESULT
  Notifications generated by KDE Connect because they were mirrored from the
phone should not be sent back to the same phone.

  SOFTWARE/OS VERSIONS
  KDE Connect: 26.04.1
  KDE Plasma: 6.x
  Distro: CachyOS / Arch-based
  Phone: Android, KDE Connect paired via LAN

  ADDITIONAL INFORMATION
  Locally I confirmed that mirrored Android notifications appear on the desktop
with application icon/source "kdeconnect". I worked around the issue by
patching the desktop
  sendnotifications plugin so NotificationsListener::checkApplicationName()
returns false when iconName == "kdeconnect". That prevents the loop while still
allowing real desktop
  notifications to be sent to Android.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to