The Illusion of Performance: Preloading Data

No matter how fast your network connection, waiting for a request to finish, parsing the data, and then updating the UI takes time. On the watch, this is time you don’t have. The screen is going to turn off in a matter of seconds, and you need to be finished before then! One thing you can do to avoid frustrating your users with loading indicators is to load the data before they even get there. For that, the parent iOS app is your best friend.

One of the features of iOS that you can use in your iPhone app is Background Fetch.[12] It’s a multitasking mode that will wake your app periodically to allow it to download new data. This is perfect for your needs! When you implement Background Fetch, ...

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.