I have read documents about PWA and push notifications. However, the following strategies are not clear to me as I am relating these concepts with pubsub strategy. What I need: I would to show notifications to user on my web app in chrome when a user got assigned some task (which happens thru another backend service)
What I have done so far is created angular application with PWA and notification as mentioned here. I needed to click on some button on my application in order to get the notification. But this is not what I want. I want to notify the user about a task if assigned any(user may or may not be actively using my application).
Do I need to periodically calling subscribeToNotifications from angular to check if there are tasks. This is pretty confusing me. Could anyone please explain me how does these even work?