Advanced Networking with URLSession

Dive deeper into URLSession. Learn how to upload data and how to perform background downloads. Work with sockets and use WebSockets for real-time messaging. Learn about authentication, App Transport Security, and cookies. By Felipe Laso-Marsetti.

5 (2) · 1 Review

Download materials
Save for later
Comments
Share

Learning path

This is part of the iOS Data & Networking learning path. View path.

Who is this for?

Intermediate developers. You should be comfortable with the Swift programming language.

You’ll start by uploading data, then you’ll learn how to make background network requests. Later, you’ll learn how to work with sockets, how to make authenticated requests, and about App Transport Security.

Finaly, you’ll learn how to work with cookies.

Covered concepts

  • URLSession
  • Uploading Files
  • Vapor
  • Background Downloads
  • Authentication
  • Sockets
  • WebSockets
  • App Transport Security
  • Cookies

Part 1: Upload Data, Background Downloads & WebSockets

01
Toggle description

Introduction to the Advanced Networking with URLSession course.

Toggle description

Learn about Vapor, the open-source server written in Swift, and how to install it locally for the next episode.

Upload Data 14:43
Toggle description

Learn how to upload data to your local Vapor instance.

Toggle description

Learn about background tasks and how to use one to handle background events.

Toggle description

Provide viewers with an overview of BSD sockets and explain how Apple’s networking framework works.

Toggle description

Use the WebSocket task to connect to a local Vapor server in order to send messages in real-time. You will, essentially, create a very small and simple chat server.

Conclusion 0:37
Toggle description

Wrap up the first part of the course and review the learned contents.

Part 2: Authentication, Cookies & App Transport Security

Toggle description

Introduction to part 2 of the Advanced Networking with URLSession course.

Toggle description

Learn about the different ways to authenticate, and provide authentication, when working with URLSession.

Toggle description

iOS tends to be quite strict when it comes to security, specially when making network requests. Learn about App Transport Security and how it can affect your network requests.

Toggle description

Learn about cookies and their role in networking. You’ll also work with cookies.

Toggle description

In this challenge, you’ll use the knowledge gained in the previous episode to print not just one, but all of the cookies available to you from your request.

Conclusion 1:46
Toggle description

Wrap up the course and review the learned contents.

Up next

iOS & Swift
Core Data: Fundamentals
Learn the basics of Core Data in this beginner series. You’ll learn how to model your data with attributes and relationships, save data using a context, display saved data in lists and much more, in both SwiftUI and UIKit!

Instructors

Contributors

Ehab Amer

Tech Editor

Adriana Kutenko

Illustrator

Nicolai Martelle Manaloto

Video Editor

Over 300 content creators. Join our team.