Request to send web push notifications to the authenticated user.
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 file installed in the root of your website.
<script> window.cp('push');</script>
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.