Open akoster opened 5 years ago
To show the actual text from the companion site in the push notification change the code in sw.js, replace:
body: 'Yay it works.',
with
body: event.data.text(),
Thanks for an awesome tutorial!
To show the actual text from the companion site in the push notification change the code in sw.js, replace:
body: 'Yay it works.',
with
body: event.data.text(),
Thanks for an awesome tutorial!