Chapter 8Communicating with WatchConnectivity

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 ...

Get Developing for Apple Watch, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.