Push Notification Live Activity Redundancy
Nucleic-Session: 73687ED9-C11C-438C-832B-979332B73893 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -54,6 +54,10 @@ final class LiveActivityManager {
|
||||
/// latest through one serial task means the newest data always wins — firing an unstructured
|
||||
/// `Task` per `sync` let a later update lose a race to an earlier one and freeze the glance.
|
||||
private var pendingState: NucleicSessionAttributes.ContentState?
|
||||
/// The alert the next applied update should carry (sound/haptic when a backgrounded session newly
|
||||
/// needs the user). Latched alongside `pendingState` so an update coalesced away by a fresher one
|
||||
/// can't drop the alert; consumed (and cleared) when an update is applied.
|
||||
private var pendingAlert: AlertConfiguration?
|
||||
private var updateTask: Task<Void, Never>?
|
||||
|
||||
/// Set by `RemoteStore` to ship the activity's APNS push token to the paired Macs (and to tell
|
||||
|
||||
Reference in New Issue
Block a user