Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Learn More

service worker - push notifications

  • 1 odpověď
  • 1 má tento problém
  • 11 zobrazení
  • Poslední odpověď od Michal Stanke

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

Všechny odpovědi (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. :)