GoogleChromeLabs / web-push-codelab

Other
556 stars 291 forks source link

function call in the services worker #45

Closed madhufeb closed 7 years ago

madhufeb commented 7 years ago

I need some function to be executed every time when push notification is called(view in browser), so how to execute function call in the services worker. Thankyou

gauntface commented 7 years ago

The codelab shows you how to add a function to the push event so you can just call a function from there.