Half of the equasion - Group messages so users are not flooded
Thanks to Shruti for pointing this out. Here is the code for clarity.
Service Worker Code
messaging.onBackgroundMessage((payload) => {
console.log('Background Message recieved', payload);
const notificationTitle = payload.data.title;
const notificationOptions = {
body: payload.data.body,
tag: '<A TAG>',
renotify: true,
icon: '/images/icons-192.png',
data: {
url: "/"
}
}
self.registration.showNotification(notificationTitle, notificationOptions);
});