Click events for push notifications don’t work as expected in Chrome on Windows 10

Using a service worker, the screen transition is performed by the click event of the push notification with the following code.
Screen transition is possible in Chrome on Mac, but screen transition is not possible in Chrome on Windows 10.
Is there any solution?

importScripts('./ngsw-worker.js');

self.addEventListener('notificationclick', (event) => {
    event.waitUntil(
        self.clients.matchAll().then(function(clientList) {
            focusWindow(event);
            if (clientList.length > 0) {
                return clientList[0].focus();
            }
            return self.clients.openWindow('../hoge/fuga');
        })
        
    );
});

Source: Windows Questions

LEAVE A COMMENT