PWA improvements

This commit is contained in:
2025-09-07 17:10:50 +02:00
parent 5bed125cf6
commit 70d4db9901
10 changed files with 708 additions and 13 deletions

View File

@@ -36,8 +36,8 @@ self.addEventListener('push', function(event) {
const options = {
body: 'Du hast eine neue Notification!',
icon: '/pictures/favicon.ico',
badge: '/pictures/favicon.ico',
icon: '/pictures/icon-192.png',
badge: '/pictures/icon-192.png',
vibrate: [100, 50, 100],
data: {
dateOfArrival: Date.now(),
@@ -47,12 +47,12 @@ self.addEventListener('push', function(event) {
{
action: 'explore',
title: 'Dashboard öffnen',
icon: '/pictures/favicon.ico'
icon: '/pictures/icon-192.png'
},
{
action: 'close',
title: 'Schließen',
icon: '/pictures/favicon.ico'
icon: '/pictures/icon-192.png'
}
]
};