-
Notifications
You must be signed in to change notification settings - Fork 54
fix(notifications): restore background push notifications and improve SW session recovery #671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Just-Insane
wants to merge
24
commits into
SableClient:dev
from
Just-Insane:fix/sw-push-session-recovery
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
fafea7b
fix(sw): increase session TTL to 24h and add requestSessionWithTimeou…
Just-Insane 00e9095
fix(sw): reset heartbeat backoff on foreground sync; warm preloadedSe…
Just-Insane 8672ff9
chore: add changeset for sw-push-session-recovery
Just-Insane d18e0df
fix(notifications): replace stale visibility flags with live client ping
Just-Insane 15f5707
fix(notifications): use matchAll visibilityState instead of live ping
Just-Insane 3c5d087
feat(types): add experiment config, sessionSync types and useExperime…
Just-Insane 90f8716
fix(sw): require both visibility signals before suppressing push
Just-Insane 5b3a0fb
fix(sw): expire appIsVisible after 45 s; use hasFocus + heartbeat to …
Just-Insane f79b75e
revert(sw): remove appIsVisible signaling; rely solely on clients.mat…
Just-Insane b8d56ac
fix(notifications): restore appIsVisible flag and setAppVisible SW ha…
Just-Insane a0a6140
fix: convert appEvents to multi-subscriber pattern and cancel retry t…
Just-Insane 350a54a
fix: address PR #671 review comments + add controllerchange handler
Just-Insane a78e989
fix(sw): replace stale visibility flags with live client ping
Just-Insane 9c6baad
fix: remove presence-auto-idle and bookmarks imports that don't exist…
Just-Insane b80b708
revert(sw): replace live visibility ping with upstream appIsVisible+m…
Just-Insane 808a654
fix(sw): address review feedback for push session recovery
Just-Insane 5f963cd
chore: remove accidentally committed test.txt
Just-Insane a5f036e
refactor: use mx.getUserId() instead of activeSession param in useApp…
Just-Insane bb8b35d
fix: kick sliding sync on foreground return
Just-Insane 14c9d4b
fix(sw): improve push notification reliability and encrypted room han…
Just-Insane 40d971b
chore: fix lint and format issues
Just-Insane ac62f80
fix(config): enable SW session sync phases for reliable mobile notifi…
Just-Insane 4e28db5
fix(sw): reuse preloaded session in handleMinimalPushPayload
Just-Insane da209be
fix(badge): only clear app badge when foregrounded
Just-Insane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| default: patch | ||
| --- | ||
|
|
||
| fix(sw): improve push session recovery by increasing TTL, adding timeout fallback, and resetting heartbeat backoff on foreground sync |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useAppVisibility imports useExperimentVariant from ./useClientConfig, but src/app/hooks/useClientConfig.ts does not export it, and ClientConfig also doesn’t declare the sessionSync property used below. This file will not typecheck/compile as-is; either add the missing export/types to useClientConfig.ts or remove/guard the experiment + sessionSync usage here.