PS: this service worker was used here:
https://jan.abnuto.de/pushtest/sw2.js
What else could be tried?
Hallo,
I'm currently playing with a minimalistic webpush setup, using notifies without payload (using service worker code to fetch the notification
cause to display).
For Desktop Chomium+FF, everything seems to work as I expected so far.
But on android, when the fon is in low power mode during the the event, I get an additional, android generated notification (about my "app" having
had an update in the background. I've never noticed such notifications before).
My guess is: if this prob can be solved somehow (without specific user interaction), then it could only be the service worker js code. But I'm completely out of ideas about what I could try. It's not ev.preventDefault(), I guess.
If you can ignore lot's of useless console.logs, hardcoded urls/test msgs and outdated comments from tutorial imports, you could have a look at the service worker code here:
https://jan.abnuto.de/pushtest/service-worker.js
Well, maybe using payload notfies could also sanitize things (maybe it's
a little more clear that visile user notification is intended in that
case). But payload data would only complicate things up a lot for me, especially given that webpush might not yet have reached stable specification state.
Gruss
Jan Bruns
Hallo,
I'm currently playing with a minimalistic webpush setup, using notifies without payload (using service worker code to fetch the notification
cause to display).
For Desktop Chomium+FF, everything seems to work as I expected so far.
But on android, when the fon is in low power mode during the the event, I get an additional, android generated notification (about my "app" having
had an update in the background. I've never noticed such notifications before).
My guess is: if this prob can be solved somehow (without specific user interaction), then it could only be the service worker js code. But I'm completely out of ideas about what I could try. It's not ev.preventDefault(), I guess.
If you can ignore lot's of useless console.logs, hardcoded urls/test msgs and outdated comments from tutorial imports, you could have a look at the service worker code here:
https://jan.abnuto.de/pushtest/service-worker.js
Well, maybe using payload notfies could also sanitize things (maybe it's
a little more clear that visile user notification is intended in that
case). But payload data would only complicate things up a lot for me, especially given that webpush might not yet have reached stable specification state.
Gruss
Jan Bruns
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 251 |
Nodes: | 16 (3 / 13) |
Uptime: | 04:05:15 |
Calls: | 5,564 |
Calls today: | 3 |
Files: | 11,680 |
Messages: | 5,123,963 |
Posted today: | 1 |