I want to open the browser when a user clicks on the notification.
I have a firebase Project with Angular and i have a service worker registered which gets the notification. What Option is to set to open the browser on notification click ?
This is what i have so far and it does not work. ( I have it from here )
self.registration.showNotification(notificationTitle, notificationOptions);
self.addEventListener('notificationclick', function(event) {
event.notification.close();
clients.openWindow("/prices");
},false);
It does also not work with absolute URL.