feat: add notification title, body, and icon to webpush payload in notifications service

This commit is contained in:
pradeepkumar
2026-04-03 08:57:20 +05:30
parent df06200655
commit c949b2d217

View File

@@ -369,6 +369,11 @@ export class NotificationsService implements OnModuleInit {
}, },
}, },
webpush: { webpush: {
notification: {
title: payload.title,
body: payload.body,
icon: '/assets/icons/notification-bell-icon.svg',
},
fcmOptions: { fcmOptions: {
link: payload.data?.link || '/', link: payload.data?.link || '/',
}, },