This chapter opened with an overview of background fetch, how it works, and how it benefits your users. You also learned about the prerequisites and best practices for this feature. After establishing this basic understanding, you learned how background fetch works in concert with your application. Then, we continued to implement the required permissions and asked iOS to wake up the MustC application periodically so we could update the movies' ratings.
Once you did this, you had to refactor a good portion of the application to accommodate the new feature. It's important to be able to recognize scenarios where refactoring is a good idea, especially if it enables the smooth implementation of a feature later on. It also demonstrates that you don't have to think about every possible scenario for your code every time you implement a feature. After refactoring the application, you were finally able to implement background-fetching behavior. To do this, you quickly glanced over dispatch...