diff --git a/src/client/sw/create-notification.ts b/src/client/sw/create-notification.ts index f8663dfdf8..23eb2b9817 100644 --- a/src/client/sw/create-notification.ts +++ b/src/client/sw/create-notification.ts @@ -163,8 +163,8 @@ async function composeNotification(data: pushNotificationData): Promise<[string, }]; case 'app': - return [body.header || body.body , { - body: body.header ? body.body : undefined, + return [body.header, { + body: body.body, icon: body.icon, data }];