A background task used to update your app after a SiriKit intent runs.


@interface WKIntentDidRunRefreshBackgroundTask : WKRefreshBackgroundTask


Intent-based shortcuts can update your app’s state; however, the intent executes in a separate process from your WatchKit extension. To update the app, the system schedules this task whenever one of your intents finishes executing. Use this task to check for any updates to your app’s state, and make sure its visible interfaces are also current. For example, you can update all of your app’s snapshot, complications, and relevant shortcuts.

Do not subclass or create instances of this class. Instead, the system instantiates a WKIntentDidRunRefreshBackgroundTask object, and passes the task object to your extension delegate’s handleBackgroundTasks: method.


See Also

Background Tasks

Running watchOS Apps in the Background

Schedule and perform background tasks from within your app.

Playing Background Audio

Enable background audio in your app to provide a seamless playback experience.

Preparing to Take Your watchOS App’s Snapshot

Use snapshot background tasks to provide a timely, accurate snapshot of your app.


The abstract superclass for WatchKit's other background task classes.


A background task used to update your app’s state in the background.


A background task that helps you respond to NSURLSession background transfers.


A background task used to receive background updates from the Watch Connectivity framework.


A background task used to update your app’s user interface in preparation for a snapshot.


A background task used to periodically donate relevant Siri shortcuts.

Background Session Keys

Enable background sessions.