Keep the Badging API count equal to the primary list's pending items, update it from optimistic changes and the list's SSE stream (shared across pages), and re-sync when the app returns to the foreground. On iOS the badge needs notification permission, so Settings offers to enable it; Android does not support numeric web app badges.