Beim Aufruf von self.registration.getNotifications({ tag: tag })
von einem Service Worker enthält das zurückgegebene Array immer alte Benachrichtigungen, die ersetzt wurden. Zum Beispiel:Persistente Benachrichtigung aus der Liste der Benachrichtigungen entfernen (Notifications API)
showNotification('A', { tag: 'abc' }) // Displays the first notification
getNotifications({ tag: 'abc' }) // Returns [ NotificationA ]
showNotification('B', { tag: 'abc' }) // Replaces the previous notification
getNotifications({ tag: 'abc' }) // Returns [ NotificationB, NotificationA ]
showNotification('C', { tag: 'abc' }) // Replaces the previous notification
getNotifications({ tag: 'abc' }) // Returns [ NotificationC, NotificationB, NotificationA ]