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

Echo in preaction Xcode

I'm trying to find the output of echo 'hello world' which I added to - edit scheme -> Build -> pre-action -> add run script, in Xcode. I've tried to find it in the build in the "report navigator" sector…

VIEW QUESTION
Back To Top
Search