Skip to content

fix: android push notification routing#86

Merged
GraysonCAdams merged 4 commits intomainfrom
fix/android-push-notification-routing
Mar 5, 2026
Merged

fix: android push notification routing#86
GraysonCAdams merged 4 commits intomainfrom
fix/android-push-notification-routing

Conversation

@GraysonCAdams
Copy link
Collaborator

Summary

  • Replaced client.navigate() with postMessage() in service worker's notificationclick handler to avoid full-page reload race conditions on Android PWA
  • Added NOTIFICATION_CLICK message listener in root layout that routes via clipOverlaySignal (same working path as in-app activity notifications) or goto() for cross-page navigation

Test plan

  • Send a push notification to an Android PWA device
  • Tap the notification — clip overlay should open with video loaded
  • Verify in-app activity center notifications still work correctly
  • Test notification tap when on settings page (should navigate to feed + open overlay)
  • Test notification tap when app is closed (should open new window via deep link)

client.navigate() in the service worker causes a full page reload that
races with SvelteKit hydration, leaving the overlay open with no video.
Switch to postMessage so the layout can route via clipOverlaySignal
(same path that works for in-app activity notifications) or goto()
for client-side navigation when on a different page.
@GraysonCAdams GraysonCAdams enabled auto-merge (squash) March 5, 2026 14:12
…rhf-9h96)

Trivy container scan flagged tar 7.5.7 (bundled with npm in node:24-slim).
Update to tar@latest inside npm's own node_modules to resolve the
hardlink path traversal advisory.
The previous approach of running npm install inside npm's own directory
failed because npm's package.json references private packages. Instead,
update npm itself to latest which includes patched tar.
tar 7.5.10 isn't available in any npm release yet. Add the GHSA ID
to .trivyignore alongside existing npm bundled CVEs. Revert the
npm global update since it only reached 7.5.9.
@GraysonCAdams GraysonCAdams merged commit 061ddbd into main Mar 5, 2026
18 checks passed
@GraysonCAdams GraysonCAdams deleted the fix/android-push-notification-routing branch March 5, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant