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. ?
That will be an option when plugins have options, but I still have to investigate how to do it.
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.
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.
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