Commit graph

12 commits

Author SHA1 Message Date
Gigiaj
07e15e2421 Revise our fetch to be more in line with W3C spec 2025-06-20 17:03:51 -05:00
Gigiaj
f100279e65 Move message listener and add a togglePush listener (should ensure registers/deregisters always go off this way) 2025-06-20 17:03:51 -05:00
Gigiaj
c77ba1b534 Add push notif handling (clicks and push events) 2025-06-20 17:03:51 -05:00
Gigiaj
1d4864592f Clean up fetch code 2025-06-20 17:03:51 -05:00
Gigiaj
3b62beabf1 add param type 2025-06-20 17:03:51 -05:00
Gigiaj
4968e23dff actually set the path (should fix android blank icon issue) 2025-06-20 17:03:51 -05:00
Gigiaj
5029ea0a8a add precaching from workbox import 2025-06-20 17:03:51 -05:00
Gigiaj
14085c7ccf Convert to a more generic implementation for communicating with the client 2025-06-20 17:03:51 -05:00
Gigiaj
4cc1179a4f Add claim and install events 2025-06-20 17:03:51 -05:00
夜坂雅
0e51e19cab
fix: register service worker immediately and cache media requests (#1977)
* Allow service worker to immediately claim pages
* Allow media requests to be cached by browser
2024-10-16 21:26:03 +11:00
Ajay Bura
96df140153
Improve-auth-media (#1933)
* fix set power level broken after sdk update

* add media authentication hook

* fix service worker types

* fix service worker not working in dev mode

* fix env mode check when registering sw
2024-09-09 14:15:20 +05:30
夜坂雅
c6a8fb1117
Add authenticated media support (#1930)
* chore: Bump matrix-js-sdk to 34.4.0

* feat: Authenticated media support

* chore: Use Vite PWA for service worker support

* fix: Fix Vite PWA SW entry point

Forget this. :P

* fix: Also add Nginx rewrite for sw.js

* fix: Correct Nginx rewrite

* fix: Add Netlify redirect for sw.js

Otherwise the generic SPA rewrite to index.html would take effect, breaking Service Worker.

* fix: Account for subpath when regisering service worker

* chore: Correct types
2024-09-07 19:15:55 +05:30