We have an application for viewing the documents for different products. I would like users to subscribe for any product which they use. They have to be notified when any new guide is published for that particular product.
We tried service workers. But it looks like, it will only allow users to subscribe to the entire site and provide notifications for any content newly added to the site.
I need subscription to products not to the entire site. Which tool will help to achieve this?
Requirement:
- User can subscribe to one/more products
- So, when user has subscribed to product A and is now viewing a document about product B. He should be asked to subscribe to B(since he has not subscribed). But when he is on a guide for product A, he should not be asked to subscribe(since he has already subscribed).
- I should be able to provide javascript code to tell the system whenever a new guide is being published.