/home/kueuepay/public_html/service-worker.js
importScripts("https://js.pusher.com/beams/service-worker.js");

// PusherPushNotifications.onNotificationReceived = ({ pushEvent, payload }) => {
//     // NOTE: Overriding this method will disable the default notification
//     // handling logic offered by Pusher Beams. You MUST display a notification
//     // in this callback unless your site is currently in focus
//     // https://developers.google.com/web/fundamentals/push-notifications/subscribing-a-user#uservisibleonly_options
  
//     // Your custom notification handling logic here 🛠️
//     // https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification
//     pushEvent.waitUntil(
//       self.registration.showNotification(payload.notification.title, {
//         body: payload.notification.body,
//         icon: payload.notification.icon,
//         data: payload.data,
//       })
//     );
// };
User Login
top