Repository navigation
Conversation
A paired phone can read and change its typed session-alert opt-in with native_fcm_session_alerts. The reply carries the stored enabled value and whether delivery can be promised now: a confirmed current FCM enrollment and the configured credentialed relay's exact sessionAlerts capability, read with the same request, credential, timeout and parser as a send. Nothing is probed for general preferences or a stateless worker, and no reply carries a provider identifier, relay origin or error text. An explicit disable is stored before the probe, so it stands while the relay is unhealthy, while the reply still reports the freshly checked support. An enable is refused while unsupported. Every reply reads the stored value after the capability wait and rechecks the live pairing, and the enrollment generation and relay configuration must still match. The existing push_preferences wire shape and fcm_session_alerts storage are unchanged for older callers.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
The fast Linux workbench job on |
…' into mobile/fcm-session-alert-availability-reconcile # Conflicts: # desktop/ox-host-web/src/remote_settings.rs
|
@codex security review |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
0010178
into
mobile/fcm-session-alert-routing
Part of #95. Stacked on #371. The Android settings draft #375 will use this capability before it offers the opt-in.
Add a dedicated signed phone setting that confirms a current FCM enrollment and the configured credentialed relay's typed-alert capability. Reuse the send path's exact capability check. Persist an opt-out even during relay downtime. Before confirming a read or writing a supported opt-in, recheck the live pairing and make sure a relay or enrollment change did not invalidate the probe.
The existing per-event preference request keeps its contract. The exact stacked host library suite passed 216 tests with six fixture launchers ignored. The combined stack passed 222 host tests, and the focused checks exercise the existing TLS capability seam without contacting a real provider.