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
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/chat/includes/chat-android.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@
2
2
title: include file
3
3
description: include file
4
4
services: azure-communication-services
5
-
author: probableprime
5
+
author: awang119
6
6
manager: mikben
7
7
ms.service: azure-communication-services
8
8
ms.subservice: azure-communication-services
9
9
ms.date: 06/30/2021
10
10
ms.topic: include
11
11
ms.custom: include file
12
-
ms.author: rifox
12
+
ms.author: anniewang
13
13
---
14
14
15
15
## Prerequisites
@@ -30,18 +30,19 @@ ms.author: rifox
30
30
### Create a new android application
31
31
32
32
1. Open Android Studio and select `Create a new project`.
33
-
2. On the next window, select `Empty Activity` as the project template.
33
+
2. On the next window, select `Empty Views Activity` as the project template.
34
34
3. When choosing options, enter `ChatQuickstart` as the project name.
35
-
4. Click next and choose the directory where you want the project to be created.
35
+
4. This sample uses Java as language
36
+
5. Click next and choose the directory where you want the project to be created.
36
37
37
38
### Install the libraries
38
39
39
40
We use Gradle to install the necessary Communication Services dependencies. From the command line, navigate inside the root directory of the `ChatQuickstart` project. Open the app's build.gradle file and add the following dependencies to the `ChatQuickstart` target:
For the latest version numbers, see https://search.maven.org/artifact/com.azure.android/azure-communication-common and https://search.maven.org/artifact/com.azure.android/azure-communication-chat.
@@ -120,7 +121,6 @@ Copy the following code into class `MainActivity` in file `MainActivity.java`:
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/chat/includes/chat-js.md
+27-7Lines changed: 27 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@
2
2
title: include file
3
3
description: include file
4
4
services: azure-communication-services
5
-
author: probableprime
5
+
author: awang119
6
6
manager: mikben
7
7
ms.service: azure-communication-services
8
8
ms.subservice: azure-communication-services
9
9
ms.date: 06/30/2021
10
10
ms.topic: include
11
11
ms.custom: include file
12
-
ms.author: rifox
12
+
ms.author: anniewang
13
13
---
14
14
15
15
## Prerequisites
@@ -60,11 +60,25 @@ The `--save` option lists the library as a dependency in your **package.json** f
60
60
61
61
### Set up the app framework
62
62
63
-
This article uses parcel to bundle the application assets. Run the following command to install it and list it as a development dependency in your **package.json**:
63
+
This article uses webpack to bundle the application assets. Run the following command to install it and list it as a development dependency in your **package.json**:
Create a **webpack.config.js** in the root directory of your project.
70
+
71
+
```js
72
+
module.exports= {
73
+
entry:"./client.js",
74
+
output: {
75
+
filename:"bundle.js"
76
+
},
77
+
devtool:"inline-source-map",
78
+
mode:"development"
79
+
}
80
+
```
81
+
68
82
Create an **index.html** file in the root directory of your project. Use this file as a template to add chat capability using the Azure Communication Chat SDK for JavaScript.
69
83
70
84
```html
@@ -76,7 +90,7 @@ Create an **index.html** file in the root directory of your project. Use this fi
76
90
<body>
77
91
<h4>Azure Communication Services</h4>
78
92
<h1>Chat Quickstart</h1>
79
-
<scriptsrc="./client.js"type="module"></script>
93
+
<scriptsrc="./bundle.js"></script>
80
94
</body>
81
95
</html>
82
96
```
@@ -110,12 +124,18 @@ console.log('Azure Communication Chat client created!');
110
124
111
125
### Run the code
112
126
127
+
Update the `scripts` section in the **package.json** to include "start"
|Metric data|Metrics are numerical values that describe an aspect of a system at a particular point in time. Metrics can be aggregated using algorithms, compared to other metrics, and analyzed for trends over time.|[- Collected automatically at regular intervals.</br> - You can route some platform metrics to a Log Analytics workspace to query with other data. Check the **DS export** setting for each metric to see if you can use a diagnostic setting to route the metric data.]|[Metrics explorer](/azure/azure-monitor/essentials/metrics-getting-started)|[Azure NAT Gateway metrics supported by Azure Monitor](/azure/nat-gateway/monitor-nat-gateway-reference#metrics)|
24
-
|Resource log data|Logs are recorded system events with a timestamp. Logs can contain different types of data, and be structured or free-form text. You can route resource log data to Log Analytics workspaces for querying and analysis.||[Log Analytics](/azure/azure-monitor/learn/quick-create-workspace)|[Azure NAT Gateway resource log data supported by Azure Monitor](/azure/nat-gateway/monitor-nat-gateway-reference#activity-log)|
25
24
|Activity log data|The Azure Monitor activity log provides insight into subscription-level events. The activity log includes information like when a resource is modified or a virtual machine is started.|- Collected automatically.</br> - [Create a diagnostic setting](/azure/azure-monitor/essentials/create-diagnostic-settings) to a Log Analytics workspace at no charge.|[Activity log](/azure/azure-monitor/essentials/activity-log)||
0 commit comments