Skip to content

feat: host-drawn countdown, alarm, opening at a deadline - #801

Draft
eugypalu wants to merge 2 commits into
mainfrom
rfc/game-pill-alarm-auto-start
Draft

eugypalu wants to merge 2 commits into
mainfrom
rfc/game-pill-alarm-auto-start

Conversation

@eugypalu

@eugypalu eugypalu commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Rel to #750

What each issue asked of truapi

What a product can do now

  • Declare a pill with a key, the instant it appears, a deadline, a destination, a title, and a flag for opening that destination at the deadline.
  • Withdraw it by key. The call is idempotent, and declaring again with a live key replaces that declaration.
  • Ask for Critical urgency on a scheduled notification, and read back the urgency that was delivered.

What the app still has to do

  • Draw the pill and its countdown, persist the declaration across restarts, and hide it while the declaring product is in the foreground.
  • Open the destination on tap, and at the deadline when the declaration asks for it.
  • Map Critical onto the platform's alarm framework, and refuse the Alarms grant where there is no alarm framework.
  • Take HostBridge.pushNotification's new second argument.

@github-actions github-actions Bot added javascript Pull requests that update javascript code host-work Needs implementation in one or more host repos labels Sep 16, 2026
…uto-start

# Conflicts:
#	android/truapi-host/src/main/kotlin/io/parity/truapi/TrUAPIHost.kt
#	ios/truapi-host/Sources/TrUAPIHost/TrUAPIHost.swift
#	js/packages/truapi-host/README.md
#	js/packages/truapi-host/src/web/create-worker-host-runtime.ts
#	rust/crates/truapi-codegen/tests/golden/dispatcher.rs
#	rust/crates/truapi-codegen/tests/golden/host-callbacks-adapter.ts
#	rust/crates/truapi-codegen/tests/golden/host-callbacks.ts
#	rust/crates/truapi-codegen/tests/golden/wasm_bridge.rs
#	rust/crates/truapi-codegen/tests/golden/wire_table.rs
#	rust/crates/truapi-codegen/tests/golden/worker-callbacks.ts
#	rust/crates/truapi-platform/src/lib.rs
#	rust/crates/truapi-server/src/host_core.rs
#	rust/crates/truapi-server/src/native.rs
#	rust/crates/truapi-server/src/runtime/capabilities/platform.rs
#	rust/crates/truapi-server/src/runtime/services.rs
#	rust/crates/truapi-server/src/wasm.rs
#	rust/crates/truapi/src/api.rs
#	rust/crates/truapi/src/lib.rs
#	rust/crates/truapi/src/v01.rs
#	rust/crates/truapi/src/versioned.rs
@github-actions

Copy link
Copy Markdown

CI Status: not green, 3 items need attention.

  • ios-swift: failure
  • android-bindings: failure
  • ts-host: failure
All job results
job result
android-bindings failure
changes success
changeset-guard success
codegen success
e2e skipped
explorer success
ios-bindings success
ios-swift failure
licenses success
playground success
release-guard success
rust success
ts-client success
ts-debugger success
ts-host failure
wasm-provider success
workflow-lint skipped

Commit 85491904 · run log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

host-work Needs implementation in one or more host repos javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant