feat(webpush): improve registration notification with icon and badge

This commit is contained in:
Julien Oculi 2025-05-16 13:04:51 +02:00
parent 80fc6aeb42
commit af1dd59e3a
2 changed files with 4 additions and 1 deletions

View file

@ -11,7 +11,10 @@ export const handler = define.handlers({
await sendWebPushNotification(
'Les notifications sont desormais disponibles sur votre appareil',
{},
{
badge: '/assets/icon-192-mono.png',
icon: '/assets/favicon.png',
},
(sub) =>
sub.keys !== undefined && sub.keys.auth === subscription.keys?.auth,
)

BIN
static/assets/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB