Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a04c1790 authored by Philipp Heckel's avatar Philipp Heckel
Browse files

Do not group sticky notification with others, #219

parent 3b6ec395
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -299,6 +299,7 @@ class SubscriberService : Service() {
            .setContentIntent(pendingIntent)
            .setSound(null)
            .setShowWhen(false) // Don't show date/time
            .setGroup(NOTIFICATION_GROUP_ID) // Do not group with other notifications
            .build()
    }

@@ -353,6 +354,7 @@ class SubscriberService : Service() {

        private const val WAKE_LOCK_TAG = "SubscriberService:lock"
        private const val NOTIFICATION_CHANNEL_ID = "ntfy-subscriber"
        private const val NOTIFICATION_GROUP_ID = "io.heckel.ntfy.NOTIFICATION_GROUP_SERVICE"
        private const val NOTIFICATION_SERVICE_ID = 2586
        private const val NOTIFICATION_RECEIVED_WAKELOCK_TIMEOUT_MILLIS = 10*60*1000L /*10 minutes*/
        private const val SHARED_PREFS_ID = "SubscriberService"
+2 −1
Original line number Diff line number Diff line
@@ -10,10 +10,11 @@ Bugs:
* "[x] Instant delivery in doze mode" checkbox does not work properly (#211)
* Disallow "http" GET/HEAD actions with body (#221, thanks to @cmeis for reporting)
* Action "view" with "clear=true" does not work on some phones (#220, thanks to @cmeis for reporting)
* Do not group foreground service notification with others (#219, thanks to @s-h-a-r-d for reporting)

Additional translations:
* Japanese (thanks to @shak)
* Russian (thanks to @flamey and @ilya.mikheev.coder)

Thanks for testing:
* Thanks to @RasHas (aka @Shard), @cmeis, @poblabs, and everyone I forgot for testing.
* Thanks to @s-h-a-r-d (aka @Shard), @cmeis, @poblabs, and everyone I forgot for testing.