Learn how to use URLSession, Apple's networking API, including when and how to use data, download and upload tasks, with or without a custom session delegate, and how the system manages background sessions and WebSockets. Leverage the Combine API and SwiftUI to take your networking to the next level. Updated for iOS 13 and Swift 5.2.
Video for lesson 23 (“Connect to a WebSocket”) is missing. When I press on link instead of “Connect to a WebSocket”, “Conclusion” page is opened.
Hello! is there a Networking with URlSession course that is not focused on SwiftUI and Combine?
I was very excited to see this course pop up but I am now noticing that it is focused on Networking with SwiftUI and Combine in mind.
Hey there! There is an older version of this course that is all UIKit based. It’s not up to date with the latest version of Xcode but it should work fine.
Thank you for the speedy response – I appreciate it. For some reason when I searched for “URLSession” or “Networking” I only see the new SwiftUI Video course and the Half-Tune app article on Networking. *This is exactly what I was hoping to find, thanks for sharing the link.
Hi @bdmoakley Thank you for the tutorial I have a question regarding NSURLSession with a background configuration. I my case I have a simple REST API to fetch a simple json response (around 15kb). This is done with a NSURLSession with a default configuration and a corresponding NSURLSessionDataTask at various times when the app is in the foreground. Now I need to do the same call upon receiving a silent push notification. As the app my be in the background, how would I need to configure the session? I mean it is not a lot of data that is being fetched, but the app may be in the background. Would I need to do this with an NSURLSession with a background configuration and a download task (as dataTasks are not supported with a background configuration) or default configuration? Thanks in Advance