feat: fix push notifications and enhance PWA experience

- Fix InvalidCharacterError in push notifications with proper VAPID key validation
- Add attractive PWA install prompt component with cross-browser support
- Make notification settings always visible regardless of queue status
- Implement PWA install manager with user engagement detection
- Use SvelteKit navigation APIs instead of browser history API
- Add comprehensive error handling and logging
- Include cross-browser compatibility and responsive design
- Add development tooling improvements

Fixes push notification bugs and significantly improves PWA user experience
with modern, accessible interface components and proper error handling.
This commit is contained in:
Giancarmine Salucci
2025-12-22 15:18:03 +01:00
parent 621e113537
commit e49dbfae41
11 changed files with 760 additions and 33 deletions

View File

@@ -5,7 +5,7 @@
"value": "SDRORLyWEsWWty2ZoVGdER",
"domain": ".instagram.com",
"path": "/",
"expires": 1800937806.887488,
"expires": 1800972720.924086,
"httpOnly": false,
"secure": true,
"sameSite": "Lax"
@@ -45,7 +45,7 @@
"value": "59661903731",
"domain": ".instagram.com",
"path": "/",
"expires": 1774153806.887596,
"expires": 1774188720.924166,
"httpOnly": false,
"secure": true,
"sameSite": "None"
@@ -55,7 +55,7 @@
"value": "1280x720",
"domain": ".instagram.com",
"path": "/",
"expires": 1766982607,
"expires": 1767017521,
"httpOnly": false,
"secure": true,
"sameSite": "Lax"
@@ -72,7 +72,7 @@
},
{
"name": "rur",
"value": "\"CLN\\05459661903731\\0541797913806:01feeb043986a2466aaaf1ebeba09fae2ba7a82be022a7c9d571d4776f15f3e124c3a5a6\"",
"value": "\"CLN\\05459661903731\\0541797948720:01fe633f4b589d8aecb8b5e77985c6d725d42e9808fd112b123a1597ecfb04ee655ee7ff\"",
"domain": ".instagram.com",
"path": "/",
"expires": -1,
@@ -87,15 +87,15 @@
"localStorage": [
{
"name": "chatd-deviceid",
"value": "fade0988-9ed7-4eef-8138-bd47b59f9bee"
"value": "d559760a-86d0-43be-97d2-f15ab465ed32"
},
{
"name": "hb_timestamp",
"value": "1766374987878"
"value": "1766412721948"
},
{
"name": "IGSession",
"value": "kc8y0b:1766379608038"
"value": "wqqxv4:1766414521986"
},
{
"name": "pixel_fire_ts",
@@ -103,11 +103,11 @@
},
{
"name": "signal_flush_timestamp",
"value": "1766374987897"
"value": "1766412721967"
},
{
"name": "Session",
"value": "of2mur:1766377843038"
"value": "p2abeh:1766412756986"
},
{
"name": "has_interop_upgraded",
@@ -115,7 +115,7 @@
},
{
"name": "banzai:last_storage_flush",
"value": "1766366944520.7"
"value": "1766412720586.5"
}
]
}