Control the clients of a service worker when the user clicks on a notification generated from a push event. Allows you to focus the tab of your app or even re-open it if it was closed.
Demonstrates 3 uses cases of delivering different notifications depending on the state of the app. It can recognize when you are on a page, need to switch to an open tab, or re-open a tab.
Has it been useful?
Tell us what you think of this recipe by leaving a comment!