Skip to content

Show the herdr mark in Android notifications instead of a bell - #27

Merged
devswha merged 1 commit into
mainfrom
fix/notification-badge
Sep 24, 2026
Merged

devswha merged 1 commit into
mainfrom
fix/notification-badge

Conversation

@devswha

@devswha devswha commented Sep 24, 2026

Copy link
Copy Markdown
Owner

Summary

On Android, notifications showed Chrome's bell as the small icon (in the status bar and the notification header). Android draws that icon from a badge image's alpha channel. The push handler only set icon, so Chrome fell back to its default.

  • scripts/generate-brand.ts also exports public/icons/badge-96.png: the mark cropped from docs/brand/icon-source.png, white on transparent (alpha comes from the artwork's darkness, so nothing is redrawn).
  • public/sw.js passes it as badge. Browsers pick up the changed service worker on their next update check.

Testing

  • The badge is 96×96 RGBA. A preview over a colored background shows the mark's silhouette.
  • bun run build copies it to dist/icons/.
  • Push delivery itself was checked on a Galaxy phone (Chrome, FCM) today. A test push and real done and blocked alerts arrived with sound and vibration.

🤖 Generated with Claude Code

…ations

Android draws a notification's small icon (status bar and header) from a
badge image's alpha; the push handler set only `icon`, so Chrome fell back
to its bell. The brand export now also writes icons/badge-96.png, the mark
in white on transparent, and the service worker passes it as `badge`.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@devswha
devswha merged commit af9038f into main Sep 24, 2026
@devswha
devswha deleted the fix/notification-badge branch September 26, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant