pub fn pre_arm_deadlines(
input: FfiNotifyInput,
now: String,
) -> Result<Vec<FfiClassDeadline>, FfiError>Expand description
The instant to arm a local notification for, per class โ the call an app schedules its
UNCalendarNotificationTrigger / AlarmManager alarms from.
Reconcile your timers against the result: a class present here should hold exactly one alarm at the returned instant, and a class absent from it should hold none. Recompute after any state change; that is the whole of the arm / re-arm / cancel rule on the client side.
Only the two classes whose deadline a device can compute alone ever appear. The other three depend on server state and surface at next app launch โ a real gap the design accepts.
ยงErrors
As evaluate_alerts.