Skip to content

Commit 5802091

Browse files
Merge pull request #211224 from angellan-msft/main
Push Notification GA release
2 parents 8f4fb5f + 74cf9ce commit 5802091

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

articles/communication-services/concepts/chat/concepts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ To send push notifications for messages missed by your users while they were awa
106106
For more details, see [Push Notifications](../notifications.md).
107107

108108
> [!NOTE]
109-
> Currently sending chat push notifications with Notification Hub is generally available in Android version 1.1.0 and in public preview for iOS version 1.3.0-beta.1.
109+
> Currently sending chat push notifications with Notification Hub is generally available in Android version 1.1.0 and in IOS version 1.3.0.
110110
111111
## Build intelligent, AI powered chat experiences
112112

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

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

88
ms.author: angellan
9-
ms.date: 08/09/2022
9+
ms.date: 09/14/2022
1010
ms.topic: tutorial
1111
ms.service: azure-communication-services
1212
---
1313

1414
# Enable Push Notifications in your chat app
1515

16-
>[!IMPORTANT]
17-
>This Push Notification feature is currently in public preview. Preview APIs and SDKs are provided without a service-level agreement, and aren't recommended for production workloads. Certain features might not be supported or might have constrained capabilities.
18-
1916
This tutorial will guide you to enable Push Notification in your IOS App by using Azure Communication Chat SDK.
2017
Push notifications alert clients of incoming messages in a chat thread in situations where the mobile app isn't running in the foreground. Azure Communication Services supports two versions of push notifications.
2118

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

124121
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`.
125122

126-
* Item 3: Implementation of PushNotificationKeyHandler Protocol
123+
* Item 3: Implementation of PushNotificationKeyStorage Protocol
127124

128-
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.
125+
Third, `PushNotificationKeyStorage` is required for advanced version. As the SDK user, you could use the default `AppGroupPushNotificationKeyStorage` class provided by chat SDK. If you don’t use `App Group` as the key storage or would like to customize key storage methods, create your own class which conforms to PushNotificationKeyStorage protocol.
129126

130-
For PushNotificationKeyHandler, it defines two methods: `onPersistKey(encryptionKey:expiryTime)` and `onRetrieveKeys() -> [String]`.
127+
For PushNotificationKeyStorage, it defines two methods: `onPersistKey(encryptionKey:expiryTime)` and `onRetrieveKeys() -> [String]`.
131128

132129
The first method is used to persist the encryption key in the storage of user’s IOS device. Chat SDK will set 45 minutes as the expiry time of the encryption key. If you want Push Notification to be effect for more than 45 minutes, you need to schedule to call `chatClient.startPushNotifications(deviceToken:)` on a comparatively frequent basis (eg. every 15 minutes) so a new encryption key could be registered before the old key expires.
133130

0 commit comments

Comments
 (0)