Skip to content

Commit 740ca05

Browse files
authored
Merge pull request #270931 from garchiro7/origin/ttl-pushnotifications
Add TTL push notification documentation
2 parents 69d8431 + 65b0a7e commit 740ca05

File tree

3 files changed

+28
-6
lines changed

3 files changed

+28
-6
lines changed

articles/communication-services/concepts/voice-video-calling/calling-sdk-features.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,16 @@ The following list presents the set of features that are currently available in
9999
| | Custom background image | ✔️ ||||
100100
| Audio Effects | [Music Mode](./music-mode.md) || ✔️ | ✔️ | ✔️ |
101101
| | [Audio filters](../../how-tos/calling-sdk/manage-audio-filters.md) || ✔️ | ✔️ | ✔️ |
102-
102+
| Notifications <sup>4</sup> | [Push notifications](../../how-tos/calling-sdk/push-notifications.md) | ✔️ | ✔️ | ✔️ | ✔️ |
103103

104104
<sup>1</sup> The capability to Mute Others is currently in public preview.
105+
105106
<sup>2</sup> The Share Screen capability can be achieved using Raw Media APIs. To learn more visit [the raw media access quickstart guide](../../quickstarts/voice-video-calling/get-started-raw-media-access.md).
107+
106108
<sup>3</sup> The Calling SDK doesn't have an explicit API for these functions, you should use the Android & iOS OS APIs to achieve instead.
107109

110+
<sup>4</sup> The maximum value for TTL in native platforms, is **180 days (15,552,000 seconds)**, and the min value is **5 minutes (300 seconds)**. For CTE (Custom Teams Endpoint)/M365 Identity the max TTL value is **24 hrs (86,400 seconds)**.
111+
108112
## JavaScript Calling SDK support by OS and browser
109113

110114
The following table represents the set of supported browsers, which are currently available. **We support the most recent three major versions of the browser (most recent three minor versions for Safari)** unless otherwise indicated.
@@ -153,7 +157,6 @@ For example, this iframe allows both camera and microphone access:
153157
- Xcode 12.0+
154158
- Support for **iPadOS** 13.0+
155159

156-
157160
## Maximum call duration
158161

159162
**The maximum call duration is 30 hours**, participants that reach the maximum call duration lifetime of 30 hours will be disconnected from the call.

articles/communication-services/how-tos/calling-sdk/push-notifications.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,30 @@ zone_pivot_groups: acs-plat-web-ios-android-windows
1616

1717
# Enable push notifications for calls
1818

19-
Here, we'll learn how to enable push notifications for Azure Communication Services calls. Setting these up will let your users know when they have an incoming call which they can then answer.
19+
Here, we learn how to enable push notifications for Azure Communication Services calls. Setting up the push notifications let your users know when they have an incoming call, which they can then answer.
20+
21+
## Push notification
22+
23+
Push notifications allow you to send information from your application to users' devices. You can use push notifications to show a dialog, play a sound, or display incoming call into the app UI layer. Azure Communication Services provides integrations with [Azure Event Grid](../../../event-grid/overview.md) and [Azure Notification Hubs](../../../notification-hubs/notification-hubs-push-notification-overview.md) that enable you to add push notifications to your apps.
24+
25+
### TTL token
26+
27+
The Time To Live (TTL) token is a setting that determines the length of time a notification token stays valid before becoming invalid. This setting is useful for applications where user engagement doesn't require daily interaction but remains critical over longer periods.
28+
29+
The TTL configuration allows the management of push notifications' lifecycle, reducing the need for frequent token renewals while ensuring that the communication channel between the application and its users remains open and reliable for extended durations.
30+
31+
Currently, the maximum value for TTL is **180 days (15,552,000 seconds)**, and the min value is **5 minutes (300 seconds)**. You can enter this value and adjust it accordingly to your needs. If you don't provide a value, the default value is **24 hours (86,400 seconds)**.
32+
33+
Once the register push notification API is called when the device token information is saved in Registrar. After TTL lifespan ends, the device endpoint information is deleted. Any incoming calls on those devices can't be delivered to the devices if those devices don't call the register push notification API again.
34+
35+
In case that you want to revoke an identity you need to follow [this process](../../concepts/identity-model.md#revoke-or-update-access-token), once the identity is revoked the Registrar entry should be deleted.
36+
37+
>[!Note]
38+
>For CTE (Custom Teams Endpoint) the max TTL value is **24 hrs (86,400 seconds)** there's no way to increase this value.
2039
2140
## Prerequisites
2241

23-
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
42+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
2443
- A deployed Communication Services resource. [Create a Communication Services resource](../../quickstarts/create-communication-resource.md).
2544
- A user access token to enable the calling client. For more information, see [Create and manage access tokens](../../quickstarts/identity/access-tokens.md).
2645
- Optional: Complete the quickstart to [add voice calling to your application](../../quickstarts/voice-video-calling/getting-started-with-calling.md)

articles/communication-services/tutorials/add-voip-push-notifications-event-grid.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.date: 07/25/2023
99
ms.author: sanathr
1010
---
1111

12-
# Connect Calling Native Push Notification with Azure Event Grid
12+
# Integrate push notifications using Azure Event Grid in your Android, iOS and Windows applications
1313

1414
With Azure Communication Services, you can receive real-time event notifications in a dependable, expandable, and safe way by integrating it with [Azure Event Grid](https://azure.microsoft.com/services/event-grid/). This integration can be used to build a notification system that sends push notifications to your users on mobile devices. To achieve it, create an Event Grid subscription that triggers an [Azure Function](../../azure-functions/functions-overview.md) or webhook.
1515

@@ -23,7 +23,7 @@ You can take a look at [voice and video calling events](../../event-grid/communi
2323

2424
The current limitations of using the Native Calling SDK and [Push Notifications](../how-tos/calling-sdk/push-notifications.md) are:
2525

26-
* There's a **24-hour limit** after the register push notification API is called when the device token information is saved. After 24 hours, the device endpoint information is deleted. Any incoming calls on those devices can't be delivered to the devices if those devices don't call the register push notification API again.
26+
* The maximum value for TTL is **180 days (15,552,000 seconds)**, and the min value is **5 minutes (300 seconds)**. For CTE (Custom Teams Endpoint) the max TTL value is **24 hrs (86,400 seconds)**.
2727
* Can't deliver push notifications using Baidu or any other notification types supported by Azure Notification Hub but not yet supported in the Calling SDK.
2828

2929
## Prerequisites

0 commit comments

Comments
 (0)