Skip to content

Commit b5eca2f

Browse files
committed
update title
1 parent cac99a7 commit b5eca2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Here we recommend creating a .p12 APNS cert and set it in Notification Hub.
9494

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

97-
<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.">
97+
<img src="./media/add-chat-push-notification/xcode-config.png" width="730" height="500" alt="Screenshot of Enable Push Notifications and Background modes in Xcode.">
9898

9999
## Implementation
100100

@@ -123,7 +123,7 @@ Go to this [Apple official doc](https://developer.apple.com/documentation/userno
123123

124124
Notice that in the step “Implement Your Extension’s Handler Methods,” Apple provides the sample code to decrypt data and we'll follow the overall structure. However, since we use chat SDK for decryption, we need to replace the part starting from `“// Try to decode the encrypted message data.”` with our customized logic. Refer to the [sample code](https://github.com/Azure-Samples/communication-services-ios-quickstarts/blob/main/add-chat-push-notifications/SwiftPushTestNotificationExtension/NotificationService.swift) to see the related implementation in `NotificationService.swift`.
125125

126-
* Item 3: Implementation of ChatClientPushNotificationProtocol
126+
* Item 3: Implementation of PushNotificationKeyHandler Protocol
127127

128128
Third, `PushNotificationKeyHandler` is required for advanced version. As the SDK user, you could use the default `AppGroupPushNotificationKeyHandler` class provided by chat SDK to generate a key handler. If you don’t use `App Group` as the key storage or would like to customize key handling methods, create your own class which conforms to PushNotificationKeyHandler protocol.
129129

0 commit comments

Comments
 (0)