Skip to content

Commit 6d6efec

Browse files
committed
fix blocking items2
1 parent 56f295f commit 6d6efec

File tree

10 files changed

+24
-22
lines changed

10 files changed

+24
-22
lines changed

articles/communication-services/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ items:
122122
href: quickstarts/telemetry-application-insights.md
123123
- name: Add file sharing to your application with UI Library
124124
href: tutorials/file-sharing-tutorial.md
125+
- name: Enable Push Notifications in your chat app
126+
href: tutorials/add-chat-push-notifications.md
125127
- name: Concepts
126128
expanded: false
127129
items:

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

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: angellan
66
services: azure-communication-services
77

88
ms.author: angellan
9-
ms.date: 08/04/2022
9+
ms.date: 08/09/2022
1010
ms.topic: tutorial
1111
ms.service: azure-communication-services
1212
---
@@ -22,11 +22,11 @@ Push notifications alert clients of incoming messages in a chat thread in situat
2222
- `Basic Version` : The user will be able to see a badge number of 1 on the app’s icon, receive a notification sound and see a pop-up alert banner.
2323
- `Advanced Version`: Except for the features supported in basic version, the Contoso will be able to customize the title & message preview section in alert banner.
2424

25-
<img src="./media/add-chat-push-notification/basic-version.png" width="340" height="270" alt="This is basic version of push notification.">
25+
<img src="./media/add-chat-push-notification/basic-version.png" width="340" height="270" alt="Screenshot of basic version of push notification.">
2626

2727
[Basic Version]
2828

29-
<img src="./media/add-chat-push-notification/advanced-version.png" width="340" height="270" alt="This is advanced version of push notification.">
29+
<img src="./media/add-chat-push-notification/advanced-version.png" width="340" height="270" alt="Screenshot of advanced version of push notification.">
3030

3131
[Advanced Version]
3232

@@ -37,65 +37,65 @@ Access the sample code for this tutorial on [GitHub](https://github.com/Azure-Sa
3737

3838
## Prerequisites
3939

40-
1.Finish all the prerequisite steps in [Chat Quickstart](https://docs.microsoft.com/azure/communication-services/quickstarts/chat/get-started?pivots=programming-language-swift)
40+
1. Finish all the prerequisite steps in [Chat Quickstart](https://docs.microsoft.com/azure/communication-services/quickstarts/chat/get-started?pivots=programming-language-swift)
4141

42-
2.ANH Setup
42+
2. ANH Setup
4343
Create an Azure Notification Hub within the same subscription as your Communication Services resource and link the Notification Hub to your Communication Services resource. See [Notification Hub provisioning](../concepts/notifications.md#notification-hub-provisioning).
4444

45-
3.APNS Cert Configuration
45+
3. APNS Cert Configuration
4646
Here we recommend creating a .p12 APNS cert and set it in Notification Hub.
4747

48-
`If you are not a Microsoft internal client`, please follow step 1 to step 9.
49-
`If you are a Microsoft internal client`, please submit a ticket [here](https://aka.ms/mapsupport) and provide the bundle ID of your app to get a .p12 cert. Once you get a valid certificate issued, please execute the step 9.
48+
`If you are not a Microsoft internal client`, please follow step 1 to step 9.
49+
`If you are a Microsoft internal client`, please submit a ticket [here](https://aka.ms/mapsupport) and provide the bundle ID of your app to get a .p12 cert. Once you get a valid certificate issued, please execute the step 9.
5050

5151
* Step 1: Log in to the Apple Developer Portal. Navigate to `Certificates, IDs & Profiles > Identifiers > App IDs` and click the App ID associated with your app.
5252

53-
<img src="./media/add-chat-push-notification/cert-1.png" width="700" height="230" alt="APNS Cert Configuration step 1.">
53+
<img src="./media/add-chat-push-notification/cert-1.png" width="700" height="230" alt="Screenshot of APNS Cert Configuration step 1.">
5454

5555
* Step 2: On the screen for your App ID, check  `Capabilities > Push Notifications`. Click Save and respond “Confirm” to the Modify App Capabilities dialog box that appears.
5656

57-
<img src="./media/add-chat-push-notification/cert-2.png" width="700" height="350" alt="APNS Cert Configuration step 2-1.">
57+
<img src="./media/add-chat-push-notification/cert-2.png" width="700" height="350" alt="Screenshot of APNS Cert Configuration step 2-1.">
5858

59-
<img src="./media/add-chat-push-notification/cert-3.png" width="700" height="210" alt="APNS Cert Configuration step 2-2.">
59+
<img src="./media/add-chat-push-notification/cert-3.png" width="700" height="210" alt="Screenshot of APNS Cert Configuration step 2-2.">
6060

6161
* Step 3: In the same page, click `Capabilities > Push Notifications > Configure`. Click one of the following buttons:
6262
* Development SSL Certificate > Create Certificate (for testing push notifications while developing an iOS app)
6363
* Production SSL Certificate > Create Certificate (for sending push notifications in production)
6464

65-
<img src="./media/add-chat-push-notification/cert-4.png" width="700" height="320" alt="APNS Cert Configuration step 3.">
65+
<img src="./media/add-chat-push-notification/cert-4.png" width="700" height="320" alt="Screenshot of APNS Cert Configuration step 3.">
6666

6767
* Step 4: Then you will be navigated to the below page. Here you will upload a Certificate Signing Request (CSR). Follow the next step to create a CSR.
6868

69-
<img src="./media/add-chat-push-notification/cert-5.png" width="700" height="400" alt="APNS Cert Configuration step 4.">
69+
<img src="./media/add-chat-push-notification/cert-5.png" width="700" height="400" alt="Screenshot of APNS Cert Configuration step 4.">
7070

7171
* Step 5: In a new browser tab, follow this [help page](https://help.apple.com/developer-account/#/devbfa00fef7) to create a CSR and save the file as “App name.cer”.
7272

73-
<img src="./media/add-chat-push-notification/cert-6.png" width="700" height="360" alt="APNS Cert Configuration step 5 - 1.">
74-
<img src="./media/add-chat-push-notification/cert-7.png" width="700" height="500" alt="APNS Cert Configuration step 5 - 2.">
73+
<img src="./media/add-chat-push-notification/cert-6.png" width="700" height="360" alt="Screenshot of APNS Cert Configuration step 5 - 1.">
74+
<img src="./media/add-chat-push-notification/cert-7.png" width="700" height="500" alt="Screenshot of APNS Cert Configuration step 5 - 2.">
7575

7676
* Step 6: Drag the .cer file to “Choose File” area. Then hit “continue” on the right top corner.
7777

78-
<img src="./media/add-chat-push-notification/cert-8.png" width="700" height="400" alt="APNS Cert Configuration step 6.">
78+
<img src="./media/add-chat-push-notification/cert-8.png" width="880" height="400" alt="Screenshot of APNS Cert Configuration step 6.">
7979

8080
* Step 7: Click “Download” and save the file to local disk.
8181

82-
<img src="./media/add-chat-push-notification/cert-9.png" width="700" height="220" alt="APNS Cert Configuration step 7.">
82+
<img src="./media/add-chat-push-notification/cert-9.png" width="700" height="220" alt="Screenshot of APNS Cert Configuration step 7.">
8383

8484
* Step 8: Open the .cer file you downloaded; it will open Keychain Access. Select your certificate, right-click, and export your certificate in .p12 format.
8585

86-
<img src="./media/add-chat-push-notification/cert-10.png" width="700" height="330" alt="APNS Cert Configuration step 8 - 1.">
87-
<img src="./media/add-chat-push-notification/cert-11.png" width="700" height="400" alt="APNS Cert Configuration step 8 - 2.">
86+
<img src="./media/add-chat-push-notification/cert-10.png" width="700" height="330" alt="Screenshot of APNS Cert Configuration step 8 - 1.">
87+
<img src="./media/add-chat-push-notification/cert-11.png" width="700" height="400" alt="Screenshot of APNS Cert Configuration step 8 - 2.">
8888

8989
* Step 9: Go to your notification hub, click “Apple (APNS)” under Settings and select “Certificate” under Authentication Mode. Also select the Application Mode based on your need. Then upload the .p12 file you just created.
9090

91-
<img src="./media/add-chat-push-notification/cert-12.png" width="700" height="360" alt="APNS Cert Configuration step 9.">
91+
<img src="./media/add-chat-push-notification/cert-12.png" width="700" height="360" alt="Screenshot of APNS Cert Configuration step 9.">
9292

93-
4.XCode Configuration
93+
4. XCode Configuration
9494
* In XCode, go to  `Signing & Capabilities`. Add a capability by selecting "+ Capability", and then select “Push Notifications”.
9595

9696
* Add another capability by selecting “+ Capability”, and then select “Background Modes”. Also select “Remote Notifications” under Background Modes.
9797

98-
<img src="./media/add-chat-push-notification/xcode-config.png" width="680" height="500" alt="Enable Push Notifications and Background modes in Xcode.">
98+
<img src="./media/add-chat-push-notification/xcode-config.png" width="680" height="500" alt="Screenshot of Enable Push Notifications and Background modes in Xcode.">
9999

100100
## Implementation
101101

-8.51 KB
Loading
-2.4 KB
Loading
-4.57 KB
Loading
73.8 KB
Loading
113 KB
Loading
125 KB
Loading
-4.59 KB
Loading
-1.23 KB
Loading

0 commit comments

Comments
 (0)