Fix persistent app-icon badge (FGS channel settings resurrection) #12

Merged
mohlec merged 1 commit from fix/fgs-badge-resurrection into ncw/main 2026-07-06 14:56:53 +00:00
Owner

Samsung shows a permanent 1 badge because the always-present FGS notification sits on a channel whose showBadge=true survived the delete/recreate trick — Android restores settings for same-ID recreated channels. New channel ID = fresh settings. Also BADGE_ICON_NONE + number=0 on the notification itself.

Samsung shows a permanent 1 badge because the always-present FGS notification sits on a channel whose showBadge=true survived the delete/recreate trick — Android restores settings for same-ID recreated channels. New channel ID = fresh settings. Also BADGE_ICON_NONE + number=0 on the notification itself.
The foreground-service channel was created before setShowBadge(false)
existed on some devices (e.g. Samsung). The delete-and-recreate trick
never worked: Android restores a deleted channel's settings when it is
recreated under the same ID. Because the FGS notification is always
present, those devices show a permanent '1' badge on the app icon.

- FG channel renamed ntfy_fg_service -> ntfy_fg_service_v2 (fresh
  settings, showBadge=false actually applies); legacy channel deleted
- FGS notification additionally sets BADGE_ICON_NONE, number=0, silent
mohlec merged commit 9a99e24a56 into ncw/main 2026-07-06 14:56:53 +00:00
mohlec deleted branch fix/fgs-badge-resurrection 2026-07-06 14:56:53 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
slash/slash-mobile!12
No description provided.