feat(webpush): improve registration notification with icon and badge
This commit is contained in:
parent
80fc6aeb42
commit
af1dd59e3a
|
|
@ -11,7 +11,10 @@ export const handler = define.handlers({
|
||||||
|
|
||||||
await sendWebPushNotification(
|
await sendWebPushNotification(
|
||||||
'Les notifications sont desormais disponibles sur votre appareil',
|
'Les notifications sont desormais disponibles sur votre appareil',
|
||||||
{},
|
{
|
||||||
|
badge: '/assets/icon-192-mono.png',
|
||||||
|
icon: '/assets/favicon.png',
|
||||||
|
},
|
||||||
(sub) =>
|
(sub) =>
|
||||||
sub.keys !== undefined && sub.keys.auth === subscription.keys?.auth,
|
sub.keys !== undefined && sub.keys.auth === subscription.keys?.auth,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
BIN
static/assets/favicon.png
Normal file
BIN
static/assets/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
Loading…
Reference in a new issue