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/tutorials/add-chat-push-notifications.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Push notifications alert users of incoming messages in a chat thread when the mo
22
22
> [!div class="mx-imgBorder"]
23
23
> 
24
24
25
-
-**Advanced version**: In addition to the features supported in the basic version, you can customize the title and message preview section in the alert banner.
25
+
-**Advanced version**: In addition to the features supported in the basic version, you can customize the title and the message preview in the alert banner.
26
26
27
27
> [!div class="mx-imgBorder"]
28
28
> 
@@ -55,7 +55,7 @@ If you're a Microsoft internal customer, [submit a ticket](https://aka.ms/mapsup
55
55
56
56
1. Sign in to the [Apple Developer Portal](https://developer.apple.com/).
57
57
58
-
1. Go to **Certificates, IDs & Profiles** > **Identifiers** > **App IDs**, and then select the app ID that's associated with your app.
58
+
1. Go to **Certificates, Identifiers & Profiles** > **Identifiers** > **App IDs**, and then select the app ID that's associated with your app.
59
59
60
60
> [!div class="mx-imgBorder"]
61
61
> 
@@ -65,7 +65,7 @@ If you're a Microsoft internal customer, [submit a ticket](https://aka.ms/mapsup
65
65
> [!div class="mx-imgBorder"]
66
66
> 
67
67
68
-
In the **Modify App Capabilities** dialog that appears, select **Confirm**.
68
+
1. In the **Modify App Capabilities** dialog that appears, select **Confirm**.
69
69
70
70
> [!div class="mx-imgBorder"]
71
71
> 
@@ -78,12 +78,12 @@ If you're a Microsoft internal customer, [submit a ticket](https://aka.ms/mapsup
78
78
> [!div class="mx-imgBorder"]
79
79
> 
80
80
81
-
1. The **Certificates, Identifiers & Profiles** page appears.
81
+
1. The **Create a New Certificate** area appears on the **Certificates, Identifiers & Profiles** page.
82
82
83
83
> [!div class="mx-imgBorder"]
84
84
> 
85
85
86
-
On this page, you upload a certificate signing request (CSR):
86
+
In this area, you upload a certificate signing request (CSR):
87
87
88
88
1. On a new browser tab, follow [this Apple help page](https://help.apple.com/developer-account/#/devbfa00fef7) to create a CSR and save the file as *App name.cer*. The instructions include using the Certificate Assistant to request a certificate and to fill in the certificate information.
89
89
@@ -108,7 +108,7 @@ If you're a Microsoft internal customer, [submit a ticket](https://aka.ms/mapsup
108
108
> [!div class="mx-imgBorder"]
109
109
> 
110
110
111
-
1. Open the .cer file that you downloaded. In Keychain Access, select your certificate, right-click, and export your certificate in .p12 format.
111
+
1. Open the .cer file that you downloaded. In Keychain Access, select your certificate, right-click it, and then export your certificate in .p12 format.
112
112
113
113
1. Go to your notification hub. Under **Settings**, select **Apple (APNS)**. Then fill in the certificate details:
114
114
@@ -129,7 +129,7 @@ If you're a Microsoft internal customer, [submit a ticket](https://aka.ms/mapsup
129
129
130
130
1. Add another capability by selecting **+ Capability**, and then select **Background Modes**.
131
131
132
-
1. Under **Background Modes**, select **Remote Notifications**.
132
+
1. Under **Background Modes**, select **Remote notifications**.
133
133
134
134
> [!div class="mx-imgBorder"]
135
135
> 
@@ -150,9 +150,9 @@ If you want to implement an advanced version of push notifications, you need to
150
150
151
151
Create persistent data storage in iOS devices. This data storage should be able to share data between the main app and app extensions.
152
152
153
-
In the sample code for this tutorial, choose App Group as the data storage by taking these actions:
153
+
In the sample code for this tutorial, choose App Groups as the data storage by taking these actions:
154
154
155
-
- Add the App Group capability to your app's targets (main app and app extensions) by following the steps in the Apple article [Adding capabilities to your app](https://developer.apple.com/documentation/xcode/adding-capabilities-to-your-app?changes=latest_minor#Add-a-capability).
155
+
- Add the App Groups capability to your app's targets (main app and app extensions) by following the steps in the Apple article [Adding capabilities to your app](https://developer.apple.com/documentation/xcode/adding-capabilities-to-your-app?changes=latest_minor#Add-a-capability).
156
156
157
157
- Configure App Groups by following the steps in the Apple article [Configuring App Groups](https://developer.apple.com/documentation/xcode/configuring-app-groups?changes=latest_minor). Make sure your main app and your app extensions have the same container name.
158
158
@@ -166,7 +166,7 @@ Implement the Notification Service Extension bundled with the main app. This app
166
166
167
167
#### Implementation of the PushNotificationKeyStorage protocol
168
168
169
-
The `PushNotificationKeyStorage` protocol is required for the advanced version of push notifications. You could use the default `AppGroupPushNotificationKeyStorage` class that the Chat SDK provides. If you don't use App Group as the key storage, or if you want to customize key storage methods, create your own class that conforms to the `PushNotificationKeyStorage` protocol.
169
+
The `PushNotificationKeyStorage` protocol is required for the advanced version of push notifications. You could use the default `AppGroupPushNotificationKeyStorage` class that the Chat SDK provides. If you don't use App Groups as the key storage, or if you want to customize key storage methods, create your own class that conforms to the `PushNotificationKeyStorage` protocol.
170
170
171
171
`PushNotificationKeyStorage` defines two methods:
172
172
@@ -188,7 +188,7 @@ In the protocol extension, the Chat SDK provides an implementation of the `decry
188
188
189
189
5. Plug the iOS device into your Mac and run the program. When you're asked to authorize push notifications on the device, select **Allow**.
190
190
191
-
6. As User B, send a chat message. You (User A) should receive a push notification on your iOS device.
191
+
6. As User B, send a chat message. Confirm that User A receives a push notification on the iOS device.
192
192
193
193
## Implement registration renewal
194
194
@@ -201,7 +201,7 @@ This tutorial proposes two solutions that are aligned with Apple's official guid
201
201
202
202
### Solution 1: Background tasks
203
203
204
-
Background tasks offer a way to perform activities even when the app is not in the foreground. By implementing a background task, your app can request more time to complete a specific task, such as renewing the push notification registration.
204
+
Background tasks offer a way to perform activities even when the app is not in the foreground. When you implement a background task, your app can request more time to complete a specific task, such as renewing the push notification registration.
205
205
206
206
The following sections describe how you can use background tasks for registration renewal.
0 commit comments