Skip to content

Handle Cold-Start Notification Actions and Delivery Reliability on Android#3296

Open
ScottMorris wants to merge 9 commits into
tauri-apps:v2from
ScottMorris:notification-actions-fix
Open

Handle Cold-Start Notification Actions and Delivery Reliability on Android#3296
ScottMorris wants to merge 9 commits into
tauri-apps:v2from
ScottMorris:notification-actions-fix

Conversation

@ScottMorris
Copy link
Copy Markdown

Summary

This PR improves Android notification action reliability by adding queue/replay handling for cold starts, a listener-ready handshake path, and payload/typing consistency updates across the Rust, Android, and JS bridge.

It builds directly on #2805, which fixes a critical usability issue with the core Android action-group write/read path.

What This PR Adds

  • Android queue/replay path for notification actions arriving before JS listener attachment
  • Listener-ready handshake command and permission wiring
  • JS/TS payload normalisation and callback compatibility for replayed actions
  • Additional diagnostics and contract documentation to help cross-platform parity work
  • Rust-facing API alignment updates where required by the new flow

Why

  • Notification actions can arrive while the app is cold-starting
  • Without queue/replay, action events may be lost before onAction is attached
  • Aligning payload shape across layers reduces bridge ambiguity and integration regressions

Follow-ups

  • iOS cold-start parity implementation can land as a focused follow-up
  • Additional platform-level tests can be expanded after API shape settles

can register them; fix Android incorrectly storing actions in an action
group
@ScottMorris ScottMorris requested a review from a team as a code owner March 1, 2026 04:08
@ScottMorris ScottMorris force-pushed the notification-actions-fix branch from 45004aa to 93c552a Compare March 1, 2026 04:15
ScottMorris added a commit to liminal-hq/threshold that referenced this pull request Mar 1, 2026
## Summary
- Update Cargo.lock to resolve tauri-plugin-notification from
ScottMorris/tauri-plugins-workspace branch notification-actions-fix
- Point the lockfile revision at the rebased branch head so Threshold
validates the latest notification plugin fixes

## Notes
- This PR intentionally contains only the lockfile update
- Follow-up updates to the plugin branch will be reflected by refreshing
this lockfile if needed

## Related Upstream PRs
- Plugin implementation: tauri-apps/plugins-workspace#3296
- Companion docs update: tauri-apps/tauri-docs#3743
@Legend-Master Legend-Master added the platform: android Android specific issues label Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants