Skip to content

- Fix: Open the notification URL when a notification is clicked while… - #99

Open
marc-farre wants to merge 2 commits into
masterfrom
fix/1263-open-page-of-notification-url
Open

- Fix: Open the notification URL when a notification is clicked while…#99
marc-farre wants to merge 2 commits into
masterfrom
fix/1263-open-page-of-notification-url

Conversation

@marc-farre

Copy link
Copy Markdown
Contributor

… the app is already open — Firebase only focuses the window without navigating, and iOS PWAs never dispatch the click event to the service worker at all

https://github.com/humhub/humhub-internal/issues/1263

… the app is already open — Firebase only focuses the window without navigating, and iOS PWAs never dispatch the click event to the service worker at all

humhub/humhub-internal#1263
lisandi pushed a commit to T3Social/fcm-push that referenced this pull request Aug 17, 2026
Firebase's own notificationclick handler only focuses an already-open
window without navigating it. Register our own handler before Firebase's
importScripts that focuses and navigates (or opens a new window).

Deterministic subset of PR humhub#99 by Marc Farré, without the page-side
heuristic for iOS PWAs that are already running (WebKit never dispatches
notificationclick there).
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