mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
bugs solved
This commit is contained in:
@@ -26,8 +26,8 @@ messaging.onBackgroundMessage(function(payload) {
|
||||
body: payload.notification.body,
|
||||
};
|
||||
|
||||
self.registration.showNotification(notificationTitle,
|
||||
notificationOptions);
|
||||
/* self.registration.showNotification(notificationTitle,
|
||||
notificationOptions); */
|
||||
});
|
||||
|
||||
|
||||
@@ -63,6 +63,7 @@ self.addEventListener('notificationclick', function(event) {
|
||||
console.log("Push Clicked ", event);
|
||||
// Enviar uma mensagem para o cliente (componente)
|
||||
self.clients.matchAll().then((clients) => {
|
||||
console.log("Push Clicked 2", clients);
|
||||
if (clients && clients.length) {
|
||||
clients.forEach((client) => {
|
||||
client.postMessage({ notificationClicked: true });
|
||||
|
||||
Reference in New Issue
Block a user