Connecting and Fetching Data from the Network
Finding an app that isn’t connected to a server is extremely difficult. Most apps don’t operate alone—they need to authenticate their users, fetch information, and allow their users to perform actions that eventually will be synced back to the server.
Due to this, it is important to understand how networking works—not how HTTP works in general, but how iOS apps work with the server efficiently and simply.
In this chapter, we will cover the following topics:
- Understanding mobile networking
- Handling HTTP requests, including their responses
- Integrating network calls within app flows
- Exploring how Combine works with networking
Let’s start understanding how the network fits into our app architecture.