# Push Notifications

### Installation

To get started with web push notifications, follow these steps:

1. Download the [CrowdPower Service Worker](https://app.crowdpower.io/service-worker.js).
2. Install the service worker in the root of your website; typically the /public directory.
3. Install the [CrowdPower JavaScript Tag](https://docs.crowdpower.io/getting-started/javascript-tag).
4. Execute the **push** command to request for permission to send push notifications. This only needs to be called once per customer. For example, upon sign up.

### Usage

To send a push notification to a customer, simply add the Push Notification action to an automation. If the customer has granted access to send them push notifications, they will receive it. Push notifications may have a **title**, **body**, and **URL**, and may include dynamic information about the customer, using variables.
