Issues with Service Worker web push Notifications

I’m experiencing an issue where notifications become unclickable in Firefox after the service worker goes inactive. My current service worker code works fine in other browsers, but in Firefox, notifications stop responding to clicks about 20 seconds after being displayed. Here’s a snippet of my code handling push notifications and click events:

self.addEventListener('notificationclick', function (event) {

I’ve verified this using about:debugging#/runtime/this-firefox. I don’t understand how to prevent the notification from becoming completely useless after 20 seconds.

Any help to resolve this issue would be greatly appreciated!