NEW 282935
notificationclick event not triggered if the progressive web app(pwa) is not opened
https://bugs.webkit.org/show_bug.cgi?id=282935
Summary notificationclick event not triggered if the progressive web app(pwa) is not ...
kakakit
Reported 2024-11-11 08:58:01 PST
Hello, notificationclick event cannot be triggered if the progressive web app(pwa) is already opened. I have tried many methods including client.focus() clients.openWindow() client.postMessage() message event listening Delayed message queue (to let the client being opened) preventDefault() in notificationclick event Activation event.waitUntil() The situation is that when the device install the pwa twice, the second pwa works normally. However, it is nonsense to ask users install the pwa twice. Is it a bug in Webkit and will it be fixed in the future? is there a workable example? Background: using web-push, iOS 17/18 Thanks a lot
Attachments
Radar WebKit Bug Importer
Comment 1 2024-11-18 08:58:14 PST
Note You need to log in before you can comment on or make changes to this bug.