This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Mulongo oyo etiyamaki na archive. Tuna motuna mosusu soki osengeli na lisalisi

service worker - push notifications

more options

Hello,

please I have problem with web push notifications. In my service worker there are two listeners notificationclick and notificationclose. But behaviour is strange. If customer clicks on notification, it'll fire both of listeners and I cannot track them. I'd like to know if customer close/click notification.

Other problem is with pushsubscriptionchange. Subscription has some expiration time, but I havent found how much. So what is expiration time of subscription?

Please let me know.

Thank you, Frantisek

Hello, please I have problem with web push notifications. In my service worker there are two listeners notificationclick and notificationclose. But behaviour is strange. If customer clicks on notification, it'll fire both of listeners and I cannot track them. I'd like to know if customer close/click notification. Other problem is with pushsubscriptionchange. Subscription has some expiration time, but I havent found how much. So what is expiration time of subscription? Please let me know. Thank you, Frantisek

All Replies (1)

more options

Dobrý den.

Na support.mozilla.org je pouze uživatelská podpora a tento dotaz je spíše technický na nějaké vývojářské fórum. Zkuste najít vhodné místo na https://discourse.mozilla.org/, případně na https://stackoverflow.com/ je pro vývojáře snad všechno. :)