# Prompt for Push

In order to send browser-based push notifications to your customers, you will need to request permission to do so. This command will display a system prompt for the user to grant access. You will also need to have the CrowdPower [service-worker.js](https://app.crowdpower.io/service-worker.js) file installed in the root of your website.

```javascript
<script>
  window.cp('push');
</script>
```

{% hint style="warning" %}
Before requesting for permission to send push notifications, you **must** install the CrowdPower Service Worker in the root of your website; typically the /public directory.&#x20;

[Download Service Worker](https://app.crowdpower.io/service-worker.js)
{% endhint %}
