From 4c9acc29bb6212caef4be9dc8a58d10e5e0bb65d Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 18 Sep 2021 22:14:04 +0900 Subject: [PATCH] add app --- src/client/sw/create-notification.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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; }