Bug 475692

Summary: Allow selectively disabling localOnly flag in the notification plugin
Product: [Applications] kdeconnect Reporter: Martin <spleefer90>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: REPORTED ---    
Severity: normal CC: andrew.g.r.holmes
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Android 13.x   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Martin 2023-10-16 11:31:34 UTC
SUMMARY
KDE Connect sends all notification marked as localOnly - https://developer.android.com/reference/android/app/Notification.Builder#setLocalOnly(boolean)

This sounds reasonable, but in some cases it would be nice to signal to other applications that notification *should* be forwarded further, for example when trying to use KDE Connect to synchronize notifications to GadgetBridge, see https://codeberg.org/Freeyourgadget/Gadgetbridge/issues/3384

STEPS TO REPRODUCE
1. Use notify-send to create a notification on a linux desktop connected to an android
2. KDE Connect on Android receives notification and pushes it to Android notifications as localOnly
3. GadgetBridge sees the notification, but does not react to it as it is localOnly
4. Notification does not get synchronized to a watch that GadgetBridge is connected to

OBSERVED RESULT
No notification on watch

EXPECTED RESULT
User can configure specific applications to be able to drop the flag and watch thus receives the notification

SOFTWARE/OS VERSIONS
KDE Connect 23.08.2 on Arch Linux