CHAPTER 11

image

Background Tasks

In any application, you may have to silently perform certain tasks in the background. The Universal Windows Platform provides a Background Tasks feature that lets you run code in the background. A background task is nothing but a JavaScript file that the OS runs in the background. A background task is usually run against a system trigger that you can subscribe to. A background task needs to be declared in the application task. Background tasks can report progress, completion, and cancellation to apps through certain events.

11.1 System Event Triggers for Background Tasks

Problem

You have decided to implement a background ...

Get Windows 10 Development Recipes: A Problem-Solution Approach in HTML and JavaScript 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.