Skip to content

Capture typed approval notification intent on iPhone - #372

Merged
n0rpan merged 1 commit into
mainfrom
mobile/ios-approval-action-intent
Dec 3, 2026
Merged

n0rpan merged 1 commit into
mainfrom
mobile/ios-approval-action-intent

Conversation

@n0rpan

@n0rpan n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #95.

Capture typed notification action intent at the iOS bridge. Require the fixed APNs category and action identifiers, a bounded response ID, an approval-only envelope with a canonical reference, and a canonical pairing hint. The existing scene/delegate dedupe stays in place. The default tap still uses the review path for approvals and session alerts.

This is the intake step. It does not register action buttons or send a decision.

Verified the mobile unit suites and Clippy, and linked the exact arm64 iPhone build on Linux with xtool against iPhoneOS SDK 27.1. The linked app contains the updated Rust bridge symbol. Device action verification remains open.

Read the fixed AllowOnce and Deny action identifiers from a
UNNotificationResponse and pass them to Rust as a typed AlertIntent on
AlertTap. The ordinary tap keeps ALERT_INTENT_DEFAULT and its existing legacy
and routed behavior.

A custom action is accepted only when the notification content names the exact
OX_APPROVAL_ACTIONS category and carries the exact approval envelope: one
approval reference, no session reference and no kind field. Rust additionally
requires the canonical 43-character approval reference and a canonical routed
pairing hint, and rejects a decision on a session alert. The ObjC bridge keeps
its existing bounded 16-entry request-identifier dedupe: ordinary taps are
recorded before the envelope check as before, while a custom action requires a
nonempty identifier of at most 256 characters and is recorded only after the
category and approval envelope checks.

No notification category or action is registered, and no decision is
dispatched. A captured intent is consumed by the existing review fallback, so
the app still opens the alert's review path. Question and session alerts never
produce an intent.

Checked on b918f44: cargo fmt for the workspace and desktop manifest; clippy
-D warnings and all ox-mobile tests; clang -fsyntax-only -Werror on
PushBridge.m against the iPhoneOS 27.1 SDK; and cargo check for ox-mobile on
aarch64-apple-ios against the existing cached target. The full xtool link was
not run because a host build was active; the parent builds the exact app.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T12:21:23.247954Z 7542e82 PR opened
🔒 Security Review ✅ Completed 2026-12-03T12:23:40.896340Z 7542e82 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/queue 7542e82

@n0rpan

n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator Author

In line to merge. Commit 7542e82 is reviewed with nothing blocking; it has entered the merge queue.

@n0rpan
n0rpan added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit 42fea09 Dec 3, 2026
27 checks passed
@n0rpan
n0rpan deleted the mobile/ios-approval-action-intent branch December 3, 2026 15:04
n0rpan added a commit that referenced this pull request Dec 3, 2026
…warm-launch

Restack the Android warm notification-tap change onto origin/main
9276853. Preserve main's #352 FCM bundle builds, #353 session-link
routing and #372 typed notification capture; the resulting diff against
main is limited to the reviewed #361 warm-tap feature paths.
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