feat: add notification title, body, and icon to webpush payload in notifications service
This commit is contained in:
@@ -369,6 +369,11 @@ export class NotificationsService implements OnModuleInit {
|
||||
},
|
||||
},
|
||||
webpush: {
|
||||
notification: {
|
||||
title: payload.title,
|
||||
body: payload.body,
|
||||
icon: '/assets/icons/notification-bell-icon.svg',
|
||||
},
|
||||
fcmOptions: {
|
||||
link: payload.data?.link || '/',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user