Bug 325668

Summary: Persistent apps should not show up
Product: [Applications] kdeconnect Reporter: Ulrich Lichtenegger <ulilicht>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED FIXED    
Severity: normal CC: arthur, damonhill82, rick
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Ulrich Lichtenegger 2013-10-05 14:14:31 UTC
When using apps which have a persistent presence in android notification area, such as Snapdragon Battery Guru or Widgetsoid, i get a notification on my pc when i unlock my android device. 
--> i actually don't want to know about those apps, because their "notifications" are not real notifications but features added to the notification area. 

maybe it is possible to exclude those notifications which are not swipable  - if i try to swipe those notifications away, the remain in the notification area. ?
Comment 1 Albert Vaca Cintora 2013-10-05 15:22:07 UTC
That will be an option when plugins have options, but I still have to investigate how to do it.
Comment 2 Mauro Panzeri 2013-10-07 09:04:47 UTC
I'd suggest to check for the proper flag from:
statusBarNotification.getNotification().flags

The flags for such apps (if correctly implemented) should be one of these:
- Notification.FLAG_FOREGROUND_SERVICE
- Notification.FLAG_ONGOING_EVENT
(http://developer.android.com/reference/android/app/Notification.html)
But i need to check against a real case to be sure.
Comment 3 Rick J 2013-11-29 14:10:46 UTC
It seems to me that KC already knows which ones are persistent, because they have dimmed 'X' against them in the widget drop-down. I.e. they're the non-dismissable ones. I suggest that by default, notifications with this state should not be displayed.
Comment 4 Albert Vaca Cintora 2014-01-10 18:30:43 UTC
Git commit 9bbe2908edeb305dd6e8a331726d364edc4750ba by Albert Vaca.
Committed on 10/01/2014 at 18:29.
Pushed by albertvaka into branch 'master'.

We will only sync actual notifications from now on

M  +3    -2    src/main/java/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java

http://commits.kde.org/kdeconnect-android/9bbe2908edeb305dd6e8a331726d364edc4750ba