notifications

This commit is contained in:
Bastian Wagner
2026-06-29 15:32:40 +02:00
parent 9519409ec7
commit 47d61e6427
3 changed files with 20 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
const CACHE_NAME = 'listify-shell-v2';
const CACHE_NAME = 'listify-shell-v3';
const SHELL_ASSETS = ['/', '/index.html', '/manifest.webmanifest', '/pwa-icon.svg'];
self.addEventListener('install', (event) => {
@@ -73,6 +73,9 @@ self.addEventListener('push', (event) => {
const options = {
body: payload.body || 'Du hast offene Tasks.',
tag: payload.tag || 'listify-task-digest',
renotify: true,
timestamp: Date.now(),
vibrate: [120, 80, 120],
icon: '/pwa-icon.svg',
badge: '/pwa-icon.svg',
data: {