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

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

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

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

Loading…
Cancel
Save