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
+22-22Lines changed: 22 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: angellan
6
6
services: azure-communication-services
7
7
8
8
ms.author: angellan
9
-
ms.date: 08/04/2022
9
+
ms.date: 08/09/2022
10
10
ms.topic: tutorial
11
11
ms.service: azure-communication-services
12
12
---
@@ -22,11 +22,11 @@ Push notifications alert clients of incoming messages in a chat thread in situat
22
22
-`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.
23
23
-`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.
24
24
25
-
<imgsrc="./media/add-chat-push-notification/basic-version.png"width="340"height="270"alt="This is basic version of push notification.">
25
+
<imgsrc="./media/add-chat-push-notification/basic-version.png"width="340"height="270"alt="Screenshot of basic version of push notification.">
26
26
27
27
[Basic Version]
28
28
29
-
<imgsrc="./media/add-chat-push-notification/advanced-version.png"width="340"height="270"alt="This is advanced version of push notification.">
29
+
<imgsrc="./media/add-chat-push-notification/advanced-version.png"width="340"height="270"alt="Screenshot of advanced version of push notification.">
30
30
31
31
[Advanced Version]
32
32
@@ -37,65 +37,65 @@ Access the sample code for this tutorial on [GitHub](https://github.com/Azure-Sa
37
37
38
38
## Prerequisites
39
39
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)
41
41
42
-
2.ANH Setup
42
+
2.ANH Setup
43
43
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).
44
44
45
-
3.APNS Cert Configuration
45
+
3.APNS Cert Configuration
46
46
Here we recommend creating a .p12 APNS cert and set it in Notification Hub.
47
47
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.
50
50
51
51
* 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.
<imgsrc="./media/add-chat-push-notification/cert-1.png"width="700"height="230"alt="Screenshot of APNS Cert Configuration step 1.">
54
54
55
55
* 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.
<imgsrc="./media/add-chat-push-notification/cert-4.png"width="700"height="320"alt="Screenshot of APNS Cert Configuration step 3.">
66
66
67
67
* 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.
<imgsrc="./media/add-chat-push-notification/cert-5.png"width="700"height="400"alt="Screenshot of APNS Cert Configuration step 4.">
70
70
71
71
* 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”.
<imgsrc="./media/add-chat-push-notification/cert-9.png"width="700"height="220"alt="Screenshot of APNS Cert Configuration step 7.">
83
83
84
84
* 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.
<imgsrc="./media/add-chat-push-notification/cert-10.png"width="700"height="330"alt="Screenshot of APNS Cert Configuration step 8 - 1.">
87
+
<imgsrc="./media/add-chat-push-notification/cert-11.png"width="700"height="400"alt="Screenshot of APNS Cert Configuration step 8 - 2.">
88
88
89
89
* 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.
<imgsrc="./media/add-chat-push-notification/cert-12.png"width="700"height="360"alt="Screenshot of APNS Cert Configuration step 9.">
92
92
93
-
4.XCode Configuration
93
+
4.XCode Configuration
94
94
* In XCode, go to `Signing & Capabilities`. Add a capability by selecting "+ Capability", and then select “Push Notifications”.
95
95
96
96
* Add another capability by selecting “+ Capability”, and then select “Background Modes”. Also select “Remote Notifications” under Background Modes.
97
97
98
-
<imgsrc="./media/add-chat-push-notification/xcode-config.png"width="680"height="500"alt="Enable Push Notifications and Background modes in Xcode.">
98
+
<imgsrc="./media/add-chat-push-notification/xcode-config.png"width="680"height="500"alt="Screenshot of Enable Push Notifications and Background modes in Xcode.">
0 commit comments