IOS-INFO-008:Heartbeat Timer / pause / resume / close #116

Open
opened 2026-06-10 21:28:11 +08:00 by wangdl · 0 comments
Owner

目标

实现 iOS 控制 heartbeat tick,每 15 秒调用 Rust heartbeatV2,由 Rust 计算 activeSecondsDelta。

规则

  1. iOS 开 Timer。
  2. Rust 不自己开 Timer。
  3. 默认 interval = 15s。
  4. session active 时 tick。
  5. pause / background 停止 tick。
  6. resume 后重新 tick。
  7. close 前执行最后一次 heartbeat 或 closeSession。
  8. heartbeat error 记录日志,不直接崩溃。

验收标准

  1. active session 每 15 秒触发 heartbeat。
  2. pause 后停止 heartbeat。
  3. resume 后恢复 heartbeat。
  4. close 后停止 heartbeat。
  5. 不会多个 Timer 重复运行。
  6. App background 时停止有效计时。
  7. 有 Timer 测试。
## 目标 实现 iOS 控制 heartbeat tick,每 15 秒调用 Rust heartbeatV2,由 Rust 计算 activeSecondsDelta。 ## 规则 1. iOS 开 Timer。 2. Rust 不自己开 Timer。 3. 默认 interval = 15s。 4. session active 时 tick。 5. pause / background 停止 tick。 6. resume 后重新 tick。 7. close 前执行最后一次 heartbeat 或 closeSession。 8. heartbeat error 记录日志,不直接崩溃。 ## 验收标准 1. active session 每 15 秒触发 heartbeat。 2. pause 后停止 heartbeat。 3. resume 后恢复 heartbeat。 4. close 后停止 heartbeat。 5. 不会多个 Timer 重复运行。 6. App background 时停止有效计时。 7. 有 Timer 测试。
wangdl added this to the M-IOS-INFO:学习信息采集、上传、继续学习与基础分析闭环 milestone 2026-06-10 21:28:11 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wangdl/ios-projects#116
No description provided.