PWA: app-icon badge count via navigator.setAppBadge() #154

Closed
opened 2026-09-17 22:49:24 -04:00 by jared · 0 comments
Owner

Installed PWAs (Android Chrome, desktop Chrome/Edge) support navigator.setAppBadge(n) / clearAppBadge(). Mirror what the desktop app does with set_badge_count: total unread highlights (mentions/DMs) by default, cleared on focus when read. Guard on API presence; no-op in Tauri (native badge already) and in plain tabs. Hook next to the document-title unread count so the two never disagree.

Installed PWAs (Android Chrome, desktop Chrome/Edge) support `navigator.setAppBadge(n)` / `clearAppBadge()`. Mirror what the desktop app does with `set_badge_count`: total unread **highlights** (mentions/DMs) by default, cleared on focus when read. Guard on API presence; no-op in Tauri (native badge already) and in plain tabs. Hook next to the document-title unread count so the two never disagree.
jared added this to the Features 2026-Q4 milestone 2026-09-17 22:49:24 -04:00
jared added the enhancementpriority: mediumarea: notificationsarea: mobile labels 2026-09-17 22:49:24 -04:00
jared self-assigned this 2026-09-17 22:49:24 -04:00
jared closed this issue 2026-09-17 23:21:17 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/cinny#154