Skip to content

Commit e41220f

Browse files
committed
two-communication-services-articles
1 parent 4c232e5 commit e41220f

File tree

2 files changed

+25
-19
lines changed

2 files changed

+25
-19
lines changed

articles/communication-services/how-tos/calling-sdk/push-notifications.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,10 @@ In case that you want to revoke an identity you need to follow [this process](..
6060
[!INCLUDE [Enable push notifications Windows](./includes/push-notifications/push-notifications-windows.md)]
6161
::: zone-end
6262

63-
## Next steps
63+
## Related content
64+
6465
- [Learn how to subscribe to events](./events.md)
6566
- [Learn how to manage calls](./manage-calls.md)
6667
- [Learn how to manage video](./manage-video.md)
67-
68-
## Related topics
69-
7068
- [Migrate Android SDK push notifications to FCM v1](../../tutorials/call-chat-migrate-android-push-fcm-v1.md)
7169
- [Register for Android SDK push notifications using FCM v1](../../tutorials/call-chat-register-android-push-fcm-v1.md)
Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,42 @@
11
---
22
ms.date: 08/08/2024
3-
ms.topic: quickstart
4-
titleSuffix: Azure Communication Services Calling and Chat SDK
3+
ms.topic: how-to
4+
titleSuffix: Azure Communication Services Calling SDK and Chat SDK
55
author: sanathr
6-
title: Calling and Chat SDK in an Android application
6+
title: Add the Calling and Chat SDKs in an Android application
77
ms.author: sanathr
88
ms.service: azure-communication-services
9-
description: How to use both Calling and Chat SDK together in an Android application.
9+
description: Learn how to use the Calling SDK and the Chat SDK together in an Android application.
1010
---
11-
# Add Calling and Chat SDK in an Android application
11+
# Add the Calling and Chat SDKs in an Android application
1212

13-
This tutorial describes how Contoso can integrate both Calling and Chat SDK in an Android application.
13+
This article describes how you can integrate the Azure Communication Services Calling SDK and Chat SDK in an Android application.
1414

15-
## Current limitation
15+
## Problem
1616

17-
With Android Calling SDK versions earlier than `2.11.0`, building an Android application with both the Calling and Chat SDK's resulted in the following errors:
17+
With versions of the Calling SDK earlier than 2.11.0, building an Android application with both the Calling and Chat SDKs resulted in the following errors:
1818

1919
```
2020
Duplicate class com.skype.rt.XXX found in modules jetified-azure-communication-calling-1.2.0-runtime (com.azure.android:azure-communication-calling:1.2.0) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
2121
2222
2 files found with path 'lib/x86/libc++_shared.so' from inputs: - …\.gradle\...-azure-communication-calling-1.2.0\jni\x86\libc++_shared.so - …\.gradle\...-trouter-client-android-9.1.1\jni\x86\libc++_shared.so
2323
```
2424

25-
This issue was caused because of the conflicting `.jar` and `.so` files included in the Calling SDK package `com.azure.android:azure-communication-calling` and a transitive dependency package that the Chat SDK package `com.azure.android:azure-communication-chat` imports, `com.microsoft:trouter-client-android`.
25+
This problem had two causes:
26+
27+
- Conflicting `.jar` and `.so` files included in the Calling SDK package `com.azure.android:azure-communication-calling`
28+
- A transitive dependency package that the Chat SDK package `com.azure.android:azure-communication-chat` imports, `com.microsoft:trouter-client-android`
2629

2730
## Solution
28-
From Android Calling SDK version 2.11.0 onwards, Contoso can integrate both the Calling and Chat SDKs within the same Android application. This was accomplished by making the Calling SDK rely on com.microsoft:trouter-client-android, similar to the Chat SDK’s dependency on the Trouter package, and eliminating the conflicting .jar and .so files previously included in the Calling SDK.
2931

30-
## Implementation steps
32+
From Calling SDK version 2.11.0 onward, you can integrate both the Calling and Chat SDKs within the same Android application. The 2.11.0 version solved the problem by:
33+
34+
- Eliminating the conflicting `.jar` and `.so` files.
35+
- Making the Calling SDK rely on `com.microsoft:trouter-client-android`, similar to the Chat SDK's dependency on the Trouter package.
3136

32-
Specify the version of the Android Calling and Chat SDK in your application's Gradle build file as shown in the example:
37+
## Implementation
38+
39+
Specify the version of the Calling and Chat SDKs for Android in your application's Gradle build file, as shown in this example:
3340

3441
```gradle
3542
implementation ('com.azure.android:azure-communication-calling:2.11.0')
@@ -38,7 +45,8 @@ Specify the version of the Android Calling and Chat SDK in your application's Gr
3845
}
3946
```
4047

41-
The version of `com.azure.android:azure-communication-chat` can be any version. The latest release version is used here as an example. However, the version of the Trouter package `com.microsoft:trouter-client-android` included with the Chat SDK `com.azure.android:azure-communication-chat` needs to be excluded. When the application is built, the Trouter package version included by the Calling SDK package `com.azure.android:azure-communication-calling` will be used.
48+
The example uses the latest release version of the Chat SDK package `com.azure.android:azure-communication-chat`, but you can use any version. However, the version of the Trouter package `com.microsoft:trouter-client-android` that's included with the Chat SDK package `com.azure.android:azure-communication-chat` needs to be excluded. When the application is built, it will use the Trouter package version included by the Calling SDK package `com.azure.android:azure-communication-calling`.
49+
50+
## Related content
4251

43-
## Next steps
44-
Quickstart sample is available in GitHub [Android QuickStarts](https://github.com/Azure-Samples/communication-services-android-quickstarts.git) under `Add-Chat-Calling` folder and follow the `README.md` on instructions how to run the sample.
52+
- A quickstart sample is available in the [GitHub repository for Android quickstarts](https://github.com/Azure-Samples/communication-services-android-quickstarts.git), in the `Add-Chat-Calling` folder. For instructions on how to run the sample, follow the `README.md` file.

0 commit comments

Comments
 (0)