(add) テスト通知のプッシュ通知を追加

This commit is contained in:
kakkokari-gtyih 2023-10-07 20:01:32 +09:00
parent 97261ecccf
commit b6065d2655
3 changed files with 8 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -225,6 +225,13 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif
data,
}];
case 'test':
return [t('_notification.testNotification'), {
body: t('_notification.notificationWillBeDisplayedLikeThis'),
badge: iconUrl('bell'),
data,
}];
default:
return null;
}

View File

@ -41,6 +41,7 @@ export type BadgeNames =
| 'antenna'
| 'arrow-back-up'
| 'at'
| 'bell'
| 'chart-arrows'
| 'circle-check'
| 'medal'