---
title: "New: Ably Pub/Sub now supports web push notifications"
url: "https://ably.com/blog/ably-pub-sub-web-push-notifications"
canonical: "https://ably.com/blog/ably-pub-sub-web-push-notifications"
description: "Send web push notifications directly to users screens, whether or not an application is open and running, with a single request to our unified API."
author: "Faye McClenahan"
published: "2024-10-22"
updated: "2024-10-22"
tags: ["Push notifications", "Realtime experiences"]
---

# New: Ably Pub/Sub now supports web push notifications

**Keep users informed and engaged with Ably's expanded push notification support.** We're thrilled to announce that Ably Pub/Sub now supports web push notifications, in addition to our existing support for iOS and Android devices. With just a few lines of code, developers can easily integrate web push into their applications, providing a seamless and unified experience across all major platforms.

You can send notifications in two ways: over existing Ably channels to all subscribed devices or directly to individual devices. Ably does all the heavy lifting in the background to deliver messages reliably and instantly via [Apple Push Notification Service (APNs)](https://developer.apple.com/notifications/) for iOS, [Firebase Cloud Messaging (FCM/GCM)](https://firebase.google.com/docs/cloud-messaging/) for Android and to browsers using [Web Push](https://developer.mozilla.org/en-US/docs/Web/API/Push%5FAPI).

### What can you do with Ably push notifications?

Ably push notifications offer a host of new opportunities to engage with and inform users in a way that’s more relevant, useful, and effective. Some good examples of how customers are already using Ably push notifications include:

- **Realtime Updates:** Keep users informed about critical events, such as order status, service alerts, or live sports scores.
- **Personalized Experiences:** Deliver targeted notifications based on user preferences, location, or behavior.
- **Background Tasks:** Trigger background processes efficiently to enhance user experience and reduce app load.

## All the features you need to support push notifications

With Ably, you now get all the features you need to support cross-platform and device notifications, including:

- **Mobile support:** Ably sends push notifications to devices using Firebase Cloud Messaging or Apple Push Notification Service.
- **Browser support:** Ably sends push notifications to browsers using Web Push.
- **Publish directly:** Sends push notifications to specific devices or browsers identified by unique identifiers, such as a deviceId or a clientId.
- **Publish via channels:** Messages are sent to channels to which multiple devices or browsers can subscribe to.
- **Push admin API:** Register devices or browsers, manage subscriptions, and send push notifications directly to devices, browsers or users.

## How are notifications delivered?

Messages can be delivered via pub/sub or directly to devices. The optimal delivery method depends on your specific use case. For broadcasting messages to multiple users, pub/sub is generally more efficient. However, if you need to send targeted messages to individual devices, direct device delivery may be a better choice.

![](https://ik.imagekit.io/ably/ghost/prod/2024/10/push-lifecycle.png)

**Publishing over a pub/sub channel** 

This delivery method requires a push-specific payload in the extras object of the message that specifies that it’s a notification and not a standard message. [Notifications are delivered to every device subscribed to the channel](https://ably.com/docs/push/publish#via-channels). It is ideal for scenarios where the same information, such as alerts or updates, needs to be sent to multiple users.

**Publishing directly**

Direct publishing allows for the delivery of [push notifications straight to individual devices](https://ably.com/docs/push/publish#direct-publishing) or browsers. This process is beneficial for targeting a specific device or browser using a unique identifier. Direct publishing can be used to personalize notifications.

### **Push admin API**

Ably’s [push admin API](https://ably.com/docs/push#push-admin) is a set of functionalities designed for backend servers to manage push notification tasks. It handles registering devices or browsers for push notifications, managing subscriptions to specific channels, and sending push notifications.

### Send your first notification with Ably

It’s quick and easy to get started with push notifications. Once you are [signed up](https://ably.com/sign-up), our [push notifications docs ](https://ably.com/docs/push)will take you through configuration and activation. If you have any questions, please [get in touch](http://www.ably.io/contact?%5F%5Fhstc=12655464.b018cfa7b4c7d09e20db053d7084ad0f.1686215017312.1726760062766.1726831235337.908&%5F%5Fhssc=12655464.34.1726831235337&%5F%5Fhsfp=3665877722) \- we’ll be happy to help.
