fix an issue where job runner is not activated when answering calls from CallKit

pull/1053/head
Ryan ZHAO 4 months ago
parent fc4778e79f
commit bf5db2ab93

@ -334,6 +334,8 @@ public enum PushRegistrationError: Error {
return
}
JobRunner.appDidBecomeActive()
// NOTE: Just start 1-1 poller so that it won't wait for polling group messages
(UIApplication.shared.delegate as? AppDelegate)?.startPollersIfNeeded(shouldStartGroupPollers: false)

@ -1901,6 +1901,7 @@ public extension JobRunner {
}
static func appDidBecomeActive(using dependencies: Dependencies = Dependencies()) {
SNLog("[JobRunner] appDidBecomeActive")
instance.appDidBecomeActive(using: dependencies)
}

Loading…
Cancel
Save