Additional firebase testing updates.

This commit is contained in:
Patrick Fic
2020-05-01 09:53:10 -07:00
parent a9a8c3b6aa
commit 92aeb419a9
3 changed files with 17 additions and 1 deletions

View File

@@ -42,3 +42,8 @@ self.addEventListener("notificationclick", function (event) {
// ...
console.log("SW notificationclick", event);
});
self.addEventListener("message", (message) => {
console.log("Push from SW", message);
// registration.showNotification("Push from SW" + JSON.stringify(message.data));
});