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/concepts/notifications.md
+20-19Lines changed: 20 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,25 @@
1
1
---
2
-
title: Notifications in Azure Communication Services
3
-
titleSuffix: An Azure Communication Services concept document
4
-
description: Send notifications to users of apps built on Azure Communication Services.
2
+
title: Push notifications overview
3
+
titleSuffix: An Azure Communication Services article
4
+
description: This article describes how to send notifications to users of apps built on Azure Communication Services.
5
5
author: tophpalmer
6
6
manager: chpalm
7
7
services: azure-communication-services
8
8
9
9
ms.author: chpalm
10
-
ms.date: 06/30/2021
10
+
ms.date: 06/27/2025
11
11
ms.topic: conceptual
12
12
ms.service: azure-communication-services
13
13
---
14
-
# Communication Services notifications
14
+
# Push notifications overview
15
15
16
-
The Azure Communication Services chat and calling SDKs create a real-time messaging channel that allows signaling messages to be pushed to connected clients in an efficient, reliable manner. This enables you to build rich, real-time communication functionality into your applications without the need to implement complicated HTTP polling logic. However, on mobile applications, this signaling channel only remains connected when your application is active in the foreground. If you want your users to receive incoming calls or chat messages while your application is in the background, you should use push notifications.
16
+
The Azure Communication Services Chat SDK and Calling SDK create a real-time messaging channel that enables signaling messages to be pushed to connected clients in an efficient, reliable manner. This ability enables you to build rich, real-time communication functionality into your applications without the need to implement complicated HTTP polling logic. However, on mobile applications, this signaling channel only remains connected when your application is active in the foreground. If you want your users to receive incoming calls or chat messages while your application is in the background, you should use push notifications.
17
17
18
-
Push notifications allow you to send information from your application to users' mobile devices. You can use push notifications to show a dialog, play a sound, or display incoming call UI. 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.
18
+
Push notifications enable you to send information from your application to users' mobile devices. You can use push notifications to show a dialog, play a sound, or display incoming call UI. 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.
19
19
20
20
## Trigger push notifications via Azure Event Grid
21
21
22
-
Azure Communication Services integrates with [Azure Event Grid](https://azure.microsoft.com/services/event-grid/) to deliver real-time event notifications in a reliable, scalable and secure manner. You can leverage this integration to create a notification service that delivers mobile push notifications to your users by creating an event grid subscription that triggers an [Azure Function](../../azure-functions/functions-overview.md) or webhook.
22
+
Azure Communication Services integrates with [Azure Event Grid](https://azure.microsoft.com/services/event-grid/) to deliver real-time event notifications in a reliable, scalable, and secure manner. You can use this integration to create a notification service that delivers mobile push notifications to your users by creating an Event Grid subscription that triggers an [Azure Function](../../azure-functions/functions-overview.md) or webhook.
23
23
24
24
:::image type="content" source="./media/notifications/acs-events-int.png" alt-text="Diagram showing how Communication Services integrates with Event Grid.":::
25
25
@@ -28,13 +28,13 @@ Learn more about [event handling in Azure Communication Services](../../event-gr
28
28
## Deliver push notifications via Azure Notification Hubs
29
29
30
30
> [!IMPORTANT]
31
-
> Azure Notification Hubs has announced that Firebase Cloud Messaging (FCM) legacy API will be deprecated in July 2024. This will affect all Azure Communication Services Calling and Chat applications who send Android push notifications. Customers impacted will need to migrate their registrations from FCM legacy to FCM v1, and can start doing so in March 2024. For more information including migration steps, please see [Notification Hub documentation](../../notification-hubs/notification-hubs-gcm-to-fcm.md).
31
+
> Azure Notification Hubs announced that Firebase Cloud Messaging (FCM) legacy API was deprecated in July 2024. This affects all Azure Communication Services Calling and Chat applications who send Android push notifications. Customers impacted need to migrate their registrations from FCM legacy to FCM v1, and can start doing so in March 2024. For more information including migration steps, see [Notification Hub documentation](../../notification-hubs/notification-hubs-gcm-to-fcm.md).
32
32
33
33
You can connect an Azure Notification Hub to your Communication Services resource in order to automatically send push notifications to a user's mobile device when they receive an incoming call or to notify them about missed chat activity. You should use these push notifications to wake up your application from the background and display UI that lets the user accept or decline the call or read the newly received chat message.
34
34
35
35
:::image type="content" source="./media/notifications/acs-anh-int.png" alt-text="Diagram showing how communication services integrates with Azure Notification Hubs.":::
36
36
37
-
Communication Services uses Azure Notification Hub as a pass-through service to communicate with the various platform-specific push notification services using the [Direct Send](/rest/api/notificationhubs/direct-send) API. This allows you to reuse your existing Azure Notification Hub resources and configurations to deliver low latency, reliable notifications to your applications.
37
+
Communication Services uses Azure Notification Hub as a pass-through service to communicate with the various platform-specific push notification services using the [Direct Send](/rest/api/notificationhubs/direct-send) API. This feature enables you to reuse your existing Azure Notification Hub resources and configurations to deliver low latency, reliable notifications to your applications.
38
38
39
39
> [!NOTE]
40
40
> Currently calling and chat push notifications are supported for both Android and iOS.
@@ -45,6 +45,7 @@ To deliver push notifications to client devices using Notification Hubs, [create
45
45
46
46
> [!NOTE]
47
47
> Currently the APNs and FCM platforms are supported.
48
+
48
49
The APNs platform needs to be configured with token authentication mode. Certificate authentication mode isn't supported as of now.
49
50
50
51
Once your Notification hub is configured, you can associate it to your Communication Services resource by supplying a connection string for the hub using the Azure Resource Manager Client or through the Azure portal. The connection string should contain `Send` permissions. We recommend creating another access policy with `Send` only permissions specifically for your hub. Learn more about [Notification Hubs security and access policies](../../notification-hubs/notification-hubs-push-notification-security.md)
@@ -69,15 +70,15 @@ armclient POST /subscriptions/<sub_id>/resourceGroups/<resource_group>/providers
69
70
70
71
1. Inside the Communication Services resource, select **Push Notifications** from the left menu of the Communication Services page, and connect the Notification Hub that you provisioned earlier.
71
72
72
-
1. Select **Connect notification hub**. You'll see a list of notification hubs available to connect.
73
+
1. Select **Connect notification hub**. You see a list of notification hubs available to connect.
73
74
74
75
1. Select the notification hub that you'd like to use for this resource.
75
76
76
77
- If you need to create a new hub, select **Create new notification hub** to get a new hub provisioned for this resource.
77
78
78
79
:::image type="content" source="./media/notifications/acs-anh-portal-int.png" alt-text="Screenshot showing the Push Notifications settings within the Azure portal.":::
79
80
80
-
Now you'll see the notification hub that you linked with the connected state.
81
+
Now you see the notification hub that you linked with the connected state.
81
82
82
83
If you'd like to use a different hub for the resource, select **Disconnect**, and then repeat the steps to link the different notification hub.
83
84
@@ -90,13 +91,13 @@ Refer to the [voice calling quickstart](../quickstarts/voice-video-calling/getti
90
91
91
92
### Troubleshooting guide for push notifications
92
93
93
-
When you don't see push notifications on your device, there are three places where the notifications could have been dropped:
94
+
When you don't see push notifications on your device, there are three places where the notifications might be dropped:
94
95
95
96
- Azure Notification Hubs didn't accept the notification from Azure Communication Services
96
97
- The Platform Notification System (for example APNs and FCM) didn't accept the notification from Azure Notification Hubs
97
98
- The Platform Notification System didn't deliver the notification to the device.
98
99
99
-
The first place where a notification can be dropped (Azure Notification Hubs didn't accept the notifications from Azure Communication Services) is covered below. For the other two places, see [Diagnose dropped notifications in Azure Notification Hubs](../../notification-hubs/notification-hubs-push-notification-fixer.md).
100
+
The first place where a notification can be dropped (Azure Notification Hubs didn't accept the notifications from Azure Communication Services) is covered in the following description. For more information, see [Diagnose dropped notifications in Azure Notification Hubs](../../notification-hubs/notification-hubs-push-notification-fixer.md).
100
101
101
102
One way to see if your Communication Services resource sends notifications to Azure Notification Hubs is by looking at the `incoming messages` metric from the linked [Azure Notification Hub metrics](/azure/azure-monitor/essentials/metrics-supported#microsoftnotificationhubsnamespacesnotificationhubs).
102
103
@@ -116,21 +117,21 @@ The Azure Notification Hub linked to your Communication Services resource doesn'
116
117
117
118
#### The Azure Notification Hub APNs platform is configured with certificate authentication mode
118
119
119
-
In case you want to use the APNs platform with certificate authentication mode, it is not currently supported. You should configure the APNs platform with token authentication mode as specified in [Set up push notifications in a notification hub](../../notification-hubs/configure-notification-hub-portal-pns-settings.md).
120
+
In case you want to use the APNs platform with certificate authentication mode, it isn't currently supported. You should configure the APNs platform with token authentication mode as specified in [Set up push notifications in a notification hub](../../notification-hubs/configure-notification-hub-portal-pns-settings.md).
120
121
121
122
#### The linked connection string doesn't have `Send` permission
122
123
123
-
The connection string that you used to link your Notification Hub to your Communication Services resource needs to have the `Send` permission. For more details about how you can create a new connection string or see the current connection string from your Azure Notification Hub you can take a look in[Notification Hubs security and access policies](../../notification-hubs/notification-hubs-push-notification-security.md)
124
+
The connection string that you used to link your Notification Hub to your Communication Services resource needs to have the `Send` permission. For more details about how you can create a new connection string or see the current connection string from your Azure Notification Hub, see[Notification Hubs security and access policies](../../notification-hubs/notification-hubs-push-notification-security.md)
124
125
125
126
#### The linked connection string or Azure Notification Hub resourceId aren't valid
126
127
127
128
Make sure that you configure Communication Services resource with the correct connection string and Azure Notification Hub resourceId
128
129
129
130
#### The linked connection string is regenerated
130
131
131
-
In case that you regenerated the connection string of your linked Azure Notification Hub, you have to update the connection string with the new one in your Communication Services resource by [relinking the Notification Hub](#notification-hub-provisioning).
132
+
If you regenerated the connection string of your linked Azure Notification Hub, you need to update the connection string with the new one in your Communication Services resource by [relinking the Notification Hub](#notification-hub-provisioning).
132
133
133
134
## Next steps
134
135
135
-
* For an introduction to Azure Event Grid, see [What is Event Grid?](../../event-grid/overview.md)
136
-
* To learn more on the Azure Notification Hub concepts, see [Azure Notification Hubs documentation](../../notification-hubs/index.yml)
136
+
* For an introduction to Azure Event Grid, see [What is Event Grid?](../../event-grid/overview.md).
137
+
* To learn more on the Azure Notification Hub concepts, see [Azure Notification Hubs documentation](../../notification-hubs/index.yml).
0 commit comments