Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #40935

Re: webpush duplicate notifications

Path csiph.com!1.us.feeder.erje.net!3.us.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!usenet.goja.nl.eu.org!news.freedyn.de!speedkom.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Jan Bruns <ebay@abnuto.de>
Newsgroups comp.lang.javascript
Subject Re: webpush duplicate notifications
Date 27 Jun 2022 08:50:17 GMT
Lines 22
Message-ID <jht9a9F2p8rU1@mid.individual.net> (permalink)
References <jhig9bF9s16U1@mid.individual.net> <jhpvbsFd85oU1@mid.individual.net> <jhq7h0Fd85oU2@mid.individual.net>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace individual.net bBn0zkKm+X7ssUWrwTuYaA9zQGELfDIs9WhBuUYKeiMmT8eA8q
Cancel-Lock sha1:fY4OBN+Bqytt19hq1ikxVB+pRh0=
User-Agent Pan/0.145 (Duplicitous mercenary valetism; d7e168a git.gnome.org/pan2)
Xref csiph.com comp.lang.javascript:40935

Show key headers only | View raw


Jan Bruns:

> What else could be tried?


Well, after getting payload-data to work using

https://github.com/web-push-libs/ecec

I found out that even that way (without fetch() in the service worker 
code) the duplicate notification problem persisted.

And the problem was: 

For Desktop Chromium, it's not enough to simply call showNotification(). 
The push-event also needs to be waitUntil'ed for the promise returned by  
showNotification().

Gruss

Jan Bruns

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

webpush duplicate notifications Jan Bruns <ebay@abnuto.de> - 2022-06-23 06:41 +0000
  Re: webpush duplicate notifications Jan Bruns <ebay@abnuto.de> - 2022-06-26 02:42 +0000
    Re: webpush duplicate notifications Jan Bruns <ebay@abnuto.de> - 2022-06-26 05:01 +0000
      Re: webpush duplicate notifications Jan Bruns <ebay@abnuto.de> - 2022-06-27 08:50 +0000
  Re: webpush duplicate notifications Härra Rabmo <ingel1983912@gmail.com> - 2022-07-06 09:13 -0700
  Re: webpush duplicate notifications "He, who travels time to time" <he1983912@aol.com> - 2022-09-22 07:24 -0700

csiph-web