You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: This section of the documentation provides developer guidance for integrating with the Windows Cross Device Resume (XDR) feature.
3
+
title: Cross Device Resume (XDR)
4
+
ms.topic: concept-article
5
+
ms.date: 12/10/2025
6
+
ms.localizationpriority: medium
7
+
# customer intent: As a Windows developer, I want to learn how to integrate my app with Windows so that I can provide a seamless experience for my users.
8
+
---
9
+
10
+
# Cross Device Resume (XDR) Overview
11
+
12
+
Cross Device Resume (XDR) is a Windows feature that enables developers to add continuity between Windows apps and apps on other platforms. This section of the documentation provides information about the technologies that are currently available to enable XDR scenarios.
13
+
14
+
## In this section
15
+
16
+
| Topic | Description |
17
+
|-------|-------------|
18
+
|[Use the Continuity SDK to implement XDR for Android and Windows Applications](cross-device-resume.md)| Learn how to use the Continuity SDK to implement XDR with Android apps. |
19
+
|[Use WNS Notifications to implement XDR](integrate-app-continuity.md)| Learn how to implement Cross Device Resume (XDR) using Windows Push Notification Service (WNS) raw notifications. |
title: Cross Device Resume (XDR) Using Continuity SDK
2
+
title: Use the Continuity SDK to implement Cross Device Resume (XDR) for Android and Windows Applications
3
3
description: Guidelines for first & third party developers to integrate with Windows XDR experiences using the Continuity SDK.
4
4
ms.date: 08/12/2025
5
5
ms.topic: how-to
6
6
# customer intent: As a Windows developer, I want to learn how to integrate my app with Windows XDR experiences so that I can provide a seamless experience for my users.
7
7
---
8
8
9
-
# Cross Device Resume (XDR) using Continuity SDK (Android and Windows Applications)
9
+
# Use the Continuity SDK to implement Cross Device Resume (XDR) for Android and Windows Applications
10
10
11
11
This article provides comprehensive guidelines for first-party and third-party developers on how to integrate features using the Continuity SDK in your applications. The Continuity SDK enables seamless cross-device experiences, allowing users to resume activities across different platforms, including Android and Windows.
12
12
@@ -75,76 +75,236 @@ The App must:
75
75
1. After calling the Initialize function, a callback that implements IAppContextEventHandler should be triggered.
76
76
1. Send/Delete **AppContext**:
77
77
1. After initializing the SDK, if **onContextRequestReceived** is called, it indicates the connection is established. The app can then send (including create and update) **AppContext** to LTW or delete **AppContext** from LTW.
78
+
1. If there is no connection between the phone and PC and the app sends **AppContext** to LTW, the app will receive **onContextResponseError** with the message “PC is not connected.”
79
+
1. When the connection is re-established, **onContextRequestReceived** is called again. The app can then send the current AppContext to LTW.
78
80
1. After **onSyncServiceDisconnected** or deinitializing the SDK, the app should not send an **AppContext**.
79
81
80
82
Below is a code example. For all the required and optional fields in **AppContext**, please refer to the [AppContext description](#appcontext).
81
83
82
84
The following Android code snippet demonstrates how to make API requests using the Continuity SDK:
@@ -170,7 +330,13 @@ The following steps are required to prepare for the integration validation:
170
330
Next, follow these steps to validate the integration:
171
331
172
332
1. Launch the app and initialize the SDK. Confirm that **onContextRequestReceived** is called.
173
-
1. After **onContextRequestReceived** has been called, the app can send the **AppContext** to LTW. If **onContextResponseSuccess** is called after sending **AppContext**, the SDK integration is successful.
333
+
1. After **onContextRequestReceived** has been called, the app can send the **AppContext** to LTW. If **onContextResponseSuccess** is called after sending **AppContext**, the SDK integration is successful.
334
+
1. If the app sends **AppContext** while the PC is locked or disconnected, verify that **onContextResponseError** is called with “PC is not connected.”
335
+
1. When the connection is restored, ensure **onContextRequestReceived** is called again and app can then send the current AppContext to LTW.
336
+
337
+
The screenshot below shows the log entry when the PC is disconnected with the error message "PC is not connected" and the log entry after reconnection when **onContextRequestReceived** is called again.
338
+
339
+
:::image type="content" source="images/xdr-not-connected-logs.png" alt-text="A screenshot of Windows log entries showing the PC is not connected error message and the subsequent onContextRequestReceived log entry after reconnection.":::
Copy file name to clipboardExpand all lines: hub/apps/develop/windows-integration/index.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
description: This section of the documentation provides developer guidance for integrating with Windows system components and other Windows features.
3
3
title: Integrate with Windows
4
4
ms.topic: concept-article
5
-
ms.date: 12/05/2025
5
+
ms.date: 04/10/2025
6
6
ms.localizationpriority: medium
7
7
# customer intent: As a Windows developer, I want to learn how to integrate my app with Windows so that I can provide a seamless experience for my users.
8
8
---
@@ -22,13 +22,21 @@ The following table lists the Windows system components that support integration
22
22
|[Search providers](../search/search-providers.md)| Learn how to integrate into the Windows Search experience. |
23
23
|[Widget providers](../widgets/widget-providers.md)| Learn how to implement a Windows widget service provider to support your app. |
24
24
25
+
## Windows features using AI
26
+
27
+
| Feature | Description |
28
+
|--|--|
29
+
|[Recall](./recall/index.md)| Learn how to use the AI-assisted Recall feature with the User Activity API in Windows. |
30
+
|[Click to Do](./click-to-do.md)| Learn how to use the AI-assisted Click to Do feature in Windows. |
31
+
25
32
## Other Windows integration features
26
33
27
34
The following table lists other Windows integration features that support 3rd party developers.
28
35
29
36
| Feature | Description |
30
37
|--|--|
31
-
|[Cross Device Resume (XDR) using Continuity SDK](cross-device-resume.md)| Guidelines for first & third party developers to integrate with Windows XDR experiences using the Continuity SDK. |
38
+
|[Cross Device Resume (XDR)](cross-device-resume-overview.md)| Developer guidance for integrating with the Windows Cross Device Resume (XDR) feature. |
39
+
|[Integrate with application continuity and WNS notifications](integrate-app-continuity.md)| A step-by-step guide for first and third parties to integrate application continuity (resume) with Windows Push Notification Service (WNS) raw notifications. |
32
40
|[Smart App Control](../smart-app-control/overview.md)| Smart App Control is a new app execution control feature that combines Microsoft’s app intelligence services and Windows' code integrity features to protect users from untrusted or potentially dangerous code. |
33
41
|[Windows Share integration](integrate-sharesheet-overview.md)| The Windows Share Sheet is a system-provided UI that enables users to share content from your app with other apps. |
34
42
|[Windows People experiences](cross-device-people-api.md)| Learn how third party apps can integrate with Windows People experiences using APIs to store their contacts. |
0 commit comments