skip to Main Content

Xcode – Background fetch with BGTaskScheduler works perfectly with debug simulations but never works in practice

I register the background fetch task in didFinishLaunchingWithOptions of the appDelegate: BGTaskScheduler.shared.register(forTaskWithIdentifier: BackgroundScheduler.shared.backgroundTaskId, using: DispatchQueue.main) { task in BackgroundScheduler.shared.handleAppRefresh(task: task as! BGAppRefreshTask) } The handleAppRefersh function schedules for another refresh task and calls the fetch method of the operation and…

VIEW QUESTION
Back To Top
Search