diff --git a/projects/ucap-webmessenger-native-browser/src/lib/notification/notification.service.ts b/projects/ucap-webmessenger-native-browser/src/lib/notification/notification.service.ts index 0c40a4a2..b6d86ca7 100644 --- a/projects/ucap-webmessenger-native-browser/src/lib/notification/notification.service.ts +++ b/projects/ucap-webmessenger-native-browser/src/lib/notification/notification.service.ts @@ -21,7 +21,10 @@ export class NotificationService { } notify(noti: NotificationRequest) { - const notification = new Notification(noti.title, { body: noti.contents }); + const notification = new Notification(noti.title, { + body: noti.contents, + icon: noti.image || 'assets/images/img_nophoto_50.png' + }); notification.onclick = e => { console.log('notification.onclick'); };