Skip to content

Commit 35c5d69

Browse files
committed
edit pass: add-chat-push-notifications
1 parent e4e5d5c commit 35c5d69

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

articles/communication-services/tutorials/add-chat-push-notifications.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Push notifications alert users of incoming messages in a chat thread when the mo
2222
> [!div class="mx-imgBorder"]
2323
> ![Screenshot of the basic version of a push notification.](./media/add-chat-push-notification/basic-version.png)
2424
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.
2626

2727
> [!div class="mx-imgBorder"]
2828
> ![Screenshot of the advanced version of a push notification.](./media/add-chat-push-notification/advanced-version.png)
@@ -55,7 +55,7 @@ If you're a Microsoft internal customer, [submit a ticket](https://aka.ms/mapsup
5555

5656
1. Sign in to the [Apple Developer Portal](https://developer.apple.com/).
5757

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.
5959

6060
> [!div class="mx-imgBorder"]
6161
> ![Screenshot that shows selections for choosing an app ID.](./media/add-chat-push-notification/cert-1.png)
@@ -65,7 +65,7 @@ If you're a Microsoft internal customer, [submit a ticket](https://aka.ms/mapsup
6565
> [!div class="mx-imgBorder"]
6666
> ![Screenshot that shows options for editing an app ID configuration.](./media/add-chat-push-notification/cert-2.png)
6767
68-
In the **Modify App Capabilities** dialog that appears, select **Confirm**.
68+
1. In the **Modify App Capabilities** dialog that appears, select **Confirm**.
6969

7070
> [!div class="mx-imgBorder"]
7171
> ![Screenshot that shows the Confirm button for modifying app capabilities.](./media/add-chat-push-notification/cert-3.png)
@@ -78,12 +78,12 @@ If you're a Microsoft internal customer, [submit a ticket](https://aka.ms/mapsup
7878
> [!div class="mx-imgBorder"]
7979
> ![Screenshot that shows options for creating a development certificate or a production certificate.](./media/add-chat-push-notification/cert-4.png)
8080
81-
1. The **Certificates, Identifiers & Profiles** page appears.
81+
1. The **Create a New Certificate** area appears on the **Certificates, Identifiers & Profiles** page.
8282

8383
> [!div class="mx-imgBorder"]
8484
> ![Screenshot that shows the option for uploading a certificate signing request.](./media/add-chat-push-notification/cert-5.png)
8585
86-
On this page, you upload a certificate signing request (CSR):
86+
In this area, you upload a certificate signing request (CSR):
8787

8888
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.
8989

@@ -108,7 +108,7 @@ If you're a Microsoft internal customer, [submit a ticket](https://aka.ms/mapsup
108108
> [!div class="mx-imgBorder"]
109109
> ![Screenshot that shows the area for saving a certificate file.](./media/add-chat-push-notification/cert-11.png)
110110
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.
112112

113113
1. Go to your notification hub. Under **Settings**, select **Apple (APNS)**. Then fill in the certificate details:
114114

@@ -129,7 +129,7 @@ If you're a Microsoft internal customer, [submit a ticket](https://aka.ms/mapsup
129129

130130
1. Add another capability by selecting **+ Capability**, and then select **Background Modes**.
131131

132-
1. Under **Background Modes**, select **Remote Notifications**.
132+
1. Under **Background Modes**, select **Remote notifications**.
133133

134134
> [!div class="mx-imgBorder"]
135135
> ![Screenshot that shows the addition of push notifications and background modes in Xcode.](./media/add-chat-push-notification/xcode-config.png)
@@ -150,9 +150,9 @@ If you want to implement an advanced version of push notifications, you need to
150150

151151
Create persistent data storage in iOS devices. This data storage should be able to share data between the main app and app extensions.
152152

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:
154154

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).
156156

157157
- 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.
158158

@@ -166,7 +166,7 @@ Implement the Notification Service Extension bundled with the main app. This app
166166

167167
#### Implementation of the PushNotificationKeyStorage protocol
168168

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.
170170

171171
`PushNotificationKeyStorage` defines two methods:
172172

@@ -188,7 +188,7 @@ In the protocol extension, the Chat SDK provides an implementation of the `decry
188188

189189
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**.
190190

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.
192192

193193
## Implement registration renewal
194194

@@ -201,7 +201,7 @@ This tutorial proposes two solutions that are aligned with Apple's official guid
201201
202202
### Solution 1: Background tasks
203203

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.
205205

206206
The following sections describe how you can use background tasks for registration renewal.
207207

0 commit comments

Comments
 (0)