> 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/developer/sdk/web.md).

# Web

![Header](https://38998153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCL8wF0y1T2vLnm3yR2MW%2Fuploads%2Fgit-blob-8a3ed76caa696f8eea6475ebe157f2f560d29ddc%2FWebpushHeaderUpdated.png?alt=media)

Batch supports sending push notifications directly to web browsers, desktop or mobile. They allow you to reengage your users, even if your website is closed.

Did we tell you that Android supports them? Once you integrate the SDK, you'll be able to push them directly from your website, without making them install your app. And just like native applications, web push notifications can have rich content.

{% hint style="info" %}
Web Push is a paid option. Also available as a standalone paid plan. Contact your sales representative for more information.
{% endhint %}

#### Browser compatibility

Batch implements the Push API W3C standard: any browser implementing it is compatible with our Web SDK. This includes Chrome, Firefox, Edge, Safari 16+ and derivatives such as Opera, Vivaldi or Brave.

Since v3.0.0 Batch also supports the APNs protocol used by Safari for Web Push Notifications on macOS.

Since v3.4.0 Batch now supports standard Safari for Web Push Notifications on macOS Ventura.

Since v3.5.0 Batch now supports standard Safari for Web Push Notifications for PWAs on iOS 16.4.

Since v5.0.0, Batch has drop the support of APNs protocol. So every browser goes through the same standard Web Push path (VAPID + service worker).

Minimum supported versions: Chrome 63, Firefox 57, Edge 79, Safari 16 (macOS Ventura 13.0). On older browsers the SDK still starts and keeps collecting events and profile data, but push notifications are unavailable.

|         | Chrome | Safari | Firefox | Edge |
| ------- | ------ | ------ | ------- | ---- |
| Windows | ✓      |        | ✓       | ✓    |
| macOS   | ✓      | ✓      | ✓       | ✓    |
| Android | ✓      |        | ✓       | ✓    |
| iOS     |        | ✓\*    |         |      |

*\* iOS Web Push Notifications are only supported in installed PWAs, on iOS 16.4 or higher.*


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.batch.com/developer/sdk/web.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
