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