Post

Replies

Boosts

Views

Activity

Comment on Completion handler blocks are not supported in background sessions
@DTS Engineer I know this is an old thread but the problem persists in Xcode 16 and the whole point of the video is that the same background session is used in await withTaskCancellationHandler. From the transcript: This code is not making the underlying network request twice as we're using the same URLSession to back both, and URLSession will deduplicate any in-process requests under the hood. What is the correct way to perform background syncing with a cloud service?
Sep ’24