mirror of
https://github.com/stablyai/orca.git
synced 2026-09-26 16:02:43 +00:00
* Restore mobile push for delivery validation * fix(mobile): register push task before headless startup * Add authenticated mobile push test and fix iOS release entitlements * Mock push-test transport in notification consent tests * Fix slept workspace test for structured remount result * Fix mobile notification review findings * Pad Android notification icon to prevent square cropping * fix(mobile): present visible Android data pushes in foreground * test: use deterministic clock for teardown deadline * fix(mobile): present foreground pushes through Expo public APIs * fix(mobile): check push eligibility before foreground scheduling * fix(mobile): register push from shared host connection lifecycle
15 lines
560 B
Swift
15 lines
560 B
Swift
import ExpoModulesCore
|
|
|
|
public class OrcaNotificationDismissalModule: Module {
|
|
public func definition() -> ModuleDefinition {
|
|
Name("OrcaNotificationDismissal")
|
|
AsyncFunction("remember") { (payload: [String: Any]) in
|
|
if let identity = PushDismissalIdentity(payload) { PushDismissalLedger.shared.remember(identity) }
|
|
}
|
|
AsyncFunction("wasDismissed") { (payload: [String: Any]) -> Bool in
|
|
guard let identity = PushDismissalIdentity(payload) else { return false }
|
|
return PushDismissalLedger.shared.contains(identity)
|
|
}
|
|
}
|
|
}
|