Cloud service · Azure · Updated

Notification Hubs - Azure Notification Hubs is a managed push notification service that routes messages from application backends to platform notification systems for delivery to client devices.

In short

Notification Hubs centralizes device registration, audience targeting, and push submission across platforms such as iOS and Android. Backends can broadcast notifications, target users or interest groups, and use templates for platform-specific formatting and localization, while downstream platform providers handle delivery to devices.

Cloud Services Hub →

8 key features of Notification Hubs

01
Cross-platform push routing

Submit notifications through one backend integration while Notification Hubs routes them to platform providers such as APNs and FCM. Configure each provider separately and preserve platform-specific payload requirements.

02
Installation-based device management

Store device handles, tags, and templates in JSON installation records. Idempotent create-or-update operations and JSON Patch updates simplify registration retries and token refresh workflows.

03
Tag-based audience targeting

Target devices using tags and Boolean tag expressions, such as subscribers to a topic within a particular region. Assign authorization-sensitive tags through a trusted backend.

04
Templates and localization

Associate templates with installations so the backend can send common properties that become platform-specific notification payloads. Language-specific templates can support localized messages without separate send logic for every client platform.

05
Broadcast and individual targeting

Broadcast to registered audiences or target a particular user or installation. A user association can reach multiple devices, so account for duplicate user-visible alerts across those devices.

06
Direct and batch direct sends

Send to platform device handles without first storing registrations in the hub. Batch direct send is available in Basic and Standard tiers and suits applications that already maintain their own device directory.

07
Scheduled notifications

Standard tier supports scheduling notifications up to seven days in advance. Use this for known future announcements while retaining the scheduled notification identifier for cancellation when required.

08
Push diagnostics

Use send tracking identifiers to investigate failures, and use Standard-tier per-message telemetry for more detailed notification outcomes. Provider acceptance and feedback do not establish that a user saw or opened a notification.

Where Notification Hubs is used

  1. 01
    Transactional application alerts

    Notify customers when an order ships, a reservation changes, or a payment requires attention. Send a reference to the relevant record and retrieve sensitive details through the authenticated application.

  2. 02
    News and event subscriptions

    Tag installations with subscribed topics, teams, or regions and target the corresponding audience when an event occurs. Use broadcasts for genuinely application-wide announcements rather than maintaining device lists in the sending application.

  3. 03
    Enterprise work notifications

    Alert employees about assigned tasks, approvals, or new messages across their registered devices. Derive user and tenant targeting from authenticated backend identity data.

  4. 04
    Localized customer engagement

    Combine consent-based audience tags with language-specific templates for promotional or service announcements. Keep consent and campaign eligibility in the application database and update targeting metadata when preferences change.

  5. 05
    Background refresh hints

    Send a silent notification indicating that application data may have changed, then let the client fetch updates. Background execution remains subject to platform restrictions, so synchronize again when the application next becomes active.

How Notification Hubs is priced

Free tier

A no-charge tier for evaluation and small development workloads, with limited device capacity and an included monthly push allowance. It has no SLA and is not recommended for production applications.

Basic tier

A paid namespace tier for production workloads that need core registration, targeting, template, and send capabilities. Costs depend on the tier's included allowances and applicable additional push usage; check current device limits and pricing for the deployment region.

Standard tier

A paid namespace tier with higher device capacity and features including scheduled sends, richer telemetry, and bulk registration import and export. Budget for the namespace charge and applicable push usage beyond included allowances, and size the tier against both feature requirements and expected audience size.

Services Notification Hubs works with

A common architecture places an authenticated API in Azure App Service in front of installation management. The client obtains a platform push token and sends it to that API, which validates the user and applies permitted targeting tags. Business services persist authoritative application state before requesting a notification; Cosmos DB can hold notification history and user preferences independently of device delivery.

For asynchronous processing, publish notification intents to Azure Service Bus and process them with Azure Functions or another worker. The worker selects a template or native payload, submits it to Notification Hubs, and records correlation identifiers. Queue retries improve resilience to transient submission failures but can cause duplicate sends, so include stable event identifiers and avoid treating push delivery as the business transaction itself.

Keep hub credentials in Azure Key Vault and grant the sending backend access to those secrets using its managed identity. Monitor hub metrics with Azure Monitor and correlate failures with application logs. The resulting path ends at APNs, FCM, or another platform provider, whose delivery behavior remains outside the application's control; clients should always be able to recover current state without receiving a push.

Azure Functions

Use a function to translate application events into Notification Hubs send requests through an SDK or REST API. For example, a queue-triggered function can send an order-status notification after a fulfillment event arrives. Make retry behavior explicit because a retried function execution can submit the same notification more than once.

App Service

Host authenticated installation-management and notification APIs in App Service. For example, a mobile client can submit its current push token to an API that validates the signed-in user and assigns the appropriate user and subscription tags. Keep hub management and sending credentials in the server application rather than distributing them to clients.

Service Bus

Place notification intents on a Service Bus queue or topic and have a worker submit them to Notification Hubs. For example, an order service can publish an OrderDispatched event while a separate consumer handles push formatting and submission. Use dead-letter handling and application-level event identifiers to manage failed processing and duplicate submissions.

Azure Key Vault

Store Notification Hubs connection strings and other backend secrets in Key Vault. For example, an App Service application can use its managed identity to retrieve a send-policy connection string and then authenticate to the hub using that secret. Managed identity access to Key Vault does not itself authenticate Notification Hubs data-plane operations.

Azure Monitor

Use Notification Hubs metrics in Azure Monitor to observe send activity and failures and configure operational alerts. For example, alert on a sustained increase in platform notification errors after a credential change or client rollout. Combine service metrics with backend logs containing tracking identifiers to investigate individual send attempts.

Azure Cosmos DB

Keep authoritative notification preferences, business events, and in-app notification history in Cosmos DB while using Notification Hubs for device routing. For example, persist a new work-item notification and send only its identifier to the user's devices. The client can retrieve the current record after authentication even if the push was delayed or never delivered.

Azure Blob Storage

Notification Hubs bulk registration jobs export device registrations to blobs and import registrations from files in Blob Storage. For example, you can export registrations from one hub and import them into another during a migration.

Azure Communication Services

A linked notification hub delivers mobile push notifications for Communication Services calls and chat. For example, it can wake an iOS or Android app so the user can answer an incoming call.

Azure DNS

A Notification Hubs private endpoint can use an Azure Private DNS zone to resolve the namespace hostname to the endpoint’s private IP address. Clients on linked virtual networks can then use the usual namespace hostname to connect privately.

Azure Policy

Azure Policy can evaluate whether Notification Hubs namespaces have diagnostic settings and deploy those settings to route logs to a central workspace.

Alternatives to Notification Hubs in other clouds

AWS

Amazon Simple Notification Service (Amazon SNS)Amazon Simple Notification Service (Amazon SNS)

Amazon SNS and Azure Notification Hubs both send mobile push notifications to audiences. Amazon SNS also delivers messages to endpoints such as email, SMS, and queues and uses pay-as-you-go pricing, while Azure Notification Hubs focuses on device push through platform providers and offers Free, Basic, and Standard namespace tiers.

Compare fact by fact
Notification HubsAmazon Simple Notification Service (Amazon SNS)
Pricing modelNamespace tiers with push allowancesPay-as-you-go with free allowances
Audience targetingDevice tags and Boolean expressionsTopic subscriptions with filters

What is Notification Hubs

2 min read

Azure Notification Hubs provides the infrastructure between an application backend and platform notification systems such as Apple Push Notification service (APNs) and Firebase Cloud Messaging (FCM). The backend submits notifications to a hub, which resolves the target devices and forwards the appropriate payloads to those providers. Notification Hubs is not a replacement for platform push services: applications still need platform credentials, device tokens, notification permissions, and client-side handling.

Resources are organized into namespaces and hubs. A namespace is a regional management and billing boundary containing one or more hubs. A hub holds the push configuration and device information for an application environment. Separate production and test hubs so that credentials, device registrations, and test broadcasts do not affect production users. Select the namespace tier according to device capacity, push volume, and required features.

For new implementations, prefer the installations API for device management. An installation associates a stable installation identifier with a platform push handle, tags, and optional templates. Its create-or-update behavior is idempotent, making registration retries easier to implement without creating duplicate records. Refresh the installation when the platform rotates a device token, and update user associations when someone signs in or out. Existing applications can also use the registrations API.

Audience selection uses tags and tag expressions. A backend can assign tags representing a user, subscription, language, or business segment, then send to matching installations without enumerating every device. Tags are routing metadata, not an authorization boundary. Validate requested subscriptions and assign sensitive user or tenant tags on a trusted backend rather than accepting arbitrary client-provided values.

Send native platform payloads when you need explicit control over platform behavior, or use templates to map common application properties into different payload formats. For Android applications using FCM, configure FCM v1 credentials and payloads rather than the retired legacy HTTP integration. For Apple notifications, set headers such as apns-push-type consistently with the payload and intended alert or background behavior.

Keep notification sending and management credentials on the backend. Use narrowly scoped Shared Access Signature policies for application operations, store secrets securely, and rotate keys through a controlled deployment process. Azure resource management authentication is distinct from the credentials used to register devices and submit notifications.

Design push notifications as best-effort signals rather than durable records of business events. Acceptance by Notification Hubs or a downstream provider does not prove that a device displayed a notification, and there is no end-to-end delivery latency guarantee. Persist authoritative application state separately, include an opaque event identifier or deep link in the notification, and let the authenticated client retrieve current data. Monitor submission failures, provider errors, and throttling, and implement bounded retries without assuming that duplicate notifications are impossible.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.