<!--
{
  "availability" : [
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKWatchConnectivityRefreshBackgroundTask",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKWatchConnectivityRefreshBackgroundTask"
  },
  "title" : "WKWatchConnectivityRefreshBackgroundTask"
}
-->

# WKWatchConnectivityRefreshBackgroundTask

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

```
class WKWatchConnectivityRefreshBackgroundTask
```

## Overview

Don’t subclass or create instances of this class. Instead, when this background watch connectivity task is triggered, the system launches your app in the background, instantiates a [`WKWatchConnectivityRefreshBackgroundTask`](/documentation/WatchKit/WKWatchConnectivityRefreshBackgroundTask) object, and passes the task object to your app delegate’s [`handle(_:)`](/documentation/WatchKit/WKApplicationDelegate/handle(_:)-4vdjo) method.

> Note:
> In watchOS 9 and later, SwiftUI Background tasks are the preferred way to handle background tasks and interactions. For more information, <doc://com.apple.documentation/documentation/SwiftUI/Scene/backgroundTask(_:action:)>.

Background watch connectivity tasks are triggered whenever the paired device sends data using one of the following <doc://com.apple.documentation/documentation/WatchConnectivity/WCSession> methods:

- <doc://com.apple.documentation/documentation/WatchConnectivity/WCSession/updateApplicationContext(_:)>
- <doc://com.apple.documentation/documentation/WatchConnectivity/WCSession/transferUserInfo(_:)>
- <doc://com.apple.documentation/documentation/WatchConnectivity/WCSession/transferCurrentComplicationUserInfo(_:)>
- <doc://com.apple.documentation/documentation/WatchConnectivity/WCSession/transferFile(_:metadata:)>

The background watch connectivity task informs you that your app is given background time. You must use your <doc://com.apple.documentation/documentation/WatchConnectivity/WCSessionDelegate> methods to receive this data. Because of the asynchronous nature of these tasks, defer calling your tasks’s [`setTaskCompleted()`](/documentation/WatchKit/WKRefreshBackgroundTask/setTaskCompleted()) method until after you’ve activated your session and received all the pending data. Use the <doc://com.apple.documentation/documentation/WatchConnectivity/WCSession/hasContentPending> property to determine whether you still have any pending data.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)