> For the complete documentation index, see [llms.txt](https://doc.batch.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.batch.com/getting-started/other/faq/how-do-live-activities-work.md). Agents can also search and read this documentation through its [MCP server](https://doc.batch.com/~gitbook/mcp).

# How do Live Activities work?

Live Activities let apps display real-time information, such as delivery progress or live sports scores, directly on users’ screens.

Traditionally, updating a Live Activity required sending a push notification to each individual Live Activity token. Broadcast Notifications replace this by letting your backend send a single push notification to a channel, which APNs automatically delivers to every subscribed Live Activity. This significantly simplifies the direct integration of Live Activities for app developers.

{% hint style="info" %}
Batch Solution Experts can help customers implementing Live Activities the best way. It can be done on request for certain customer tiers. Reach out to your Customer Success Manager to learn more.
{% endhint %}

Here’s how it works:

* Your backend creates a channel using Apple’s server-to-server API. A channel represents a logical group of Live Activities for the same event (for example, a delivery or a football match). Apple returns a unique channel ID, such as `/xVpH==`.
* For testing purposes, channels can also be created from Apple’s Developer Portal.
* Your backend shares the channel ID with your app. When starting a Live Activity, the app passes this channel ID to iOS. The app does not need to upload or manage Live Activity push tokens—iOS handles the subscription automatically.
* Whenever the Live Activity needs to be updated, your backend sends a single broadcast notification to APNs targeting the channel ID. APNs then delivers the update to every device subscribed to that channel.
* Developers should delete channels that are no longer needed, as Apple enforces limits on the number of active channels.

Some useful links:

* [Setup Broadcast Push Notifications](https://developer.apple.com/documentation/usernotifications/setting-up-broadcast-push-notifications)
* [Create channels](https://developer.apple.com/documentation/UserNotifications/sending-channel-management-requests-to-apns)
* [Send pushes to channels](https://developer.apple.com/documentation/UserNotifications/sending-broadcast-push-notification-requests-to-apns)
* [WWDC 24 Video](https://developer.apple.com/videos/play/wwdc2024/10069/)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.batch.com/getting-started/other/faq/how-do-live-activities-work.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
