At some point in an app’s development lifecycle, the device itself is not enough. We can do a lot of cool and interesting things on the watch, but eventually we need the app to communicate with the outside world. Whether it’s making a network request to fetch remote data or communicating with the companion iPhone app to fetch data from our users’ pockets, we need a way to get data into our apps. Luckily, getting remote data is very straightforward on Apple Watch. In this chapter, we’ll cover the two ways you’ll be getting data into your apps: direct network requests, where the watch app communicates directly with a server, and using the WatchConnectivity framework to communicate with the user’s iPhone. Let’s start with direct network requests.
3.135.205.181