ekzyis b1a0abe32c
Service Worker rewrite (#2274)
* Convert all top-level arrow functions to regular functions

* Refactor webPush.sendNotification call

* Refactor webPush logging

* Rename var to title

* Rewrite service worker

This rewrite simplifies the service worker by removing

* merging of push notifications via tag property
* badge count

These features weren't properly working on iOS. We concluded that we don't really need them.

For example, this means replies will no longer get merged to "you have X new replies" but show up as individual notifications.

Only zaps still use the tag property so devices that support it can still replace any previous "your post stacked X sats" notification for the same item.

* Don't use async/await in service worker

* Support app badge count

* Fix extremely slow notificationclick

* Fix serialization and save in pushsubscriptionchange event
2025-07-10 11:54:23 -05:00
..
2025-07-07 14:15:26 -05:00
2025-02-03 18:41:01 -06:00
2024-09-12 13:05:11 -05:00
2025-07-07 14:34:37 -05:00
2025-02-28 19:15:18 -06:00
2025-02-28 19:15:18 -06:00
2025-07-10 11:54:23 -05:00
2024-03-19 19:37:31 -05:00
2025-07-07 14:34:37 -05:00
2024-03-19 19:37:31 -05:00
2025-03-22 16:59:57 -05:00
2024-03-19 19:37:31 -05:00
2024-03-26 18:36:31 -05:00
2024-03-19 19:37:31 -05:00