Push Notification Live Activity Redundancy
Nucleic-Session: 73687ED9-C11C-438C-832B-979332B73893 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -715,8 +715,13 @@ final class RemoteStore: ObservableObject {
|
||||
}
|
||||
cb.sessionBecameWaiting = { [weak self] summary in
|
||||
guard let self, !self.isActive else { return }
|
||||
// Backgrounded: prefer the glance — it shows the waiting session and alerts through the
|
||||
// local update (sound/haptic). Only fall back to a banner when there's no glance at all
|
||||
// (Live Activities off), so a needs-input arrival is never silent.
|
||||
if !LiveActivityManager.shared.hasLiveActivity {
|
||||
NotificationRouter.shared.postSessionUpdate(summary)
|
||||
}
|
||||
}
|
||||
cb.wireError = { [weak self] error in
|
||||
self?.showError(error.message, sessionID: error.sessionID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user