Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Please Add function notificationclick in NgServiceWorker #178

Open
popzadid opened this issue Jul 28, 2017 · 2 comments
Open

Please Add function notificationclick in NgServiceWorker #178

popzadid opened this issue Jul 28, 2017 · 2 comments

Comments

@popzadid
Copy link

The function is using for notification show up and when I click on the notification it doesn't have anything. After that, I find the way how to do this. In google document for webapplication addEventListener('notificationclick') and i try to manual add to worker-basic.min.js and so work!
Please tell me more how to implement notificationclick on service worker

Thank you

@webmaxru
Copy link
Member

Hello @popzadid !
The way to add your own handlers is described at the end of this document:
https://bit.ly/pwa-angularsummit-2017 - "Step 9 - Extending Angular Service Worker functionality"

@popzadid
Copy link
Author

@webmaxru Thank you! I see the way you do and it's work. But it has another way to do this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants