// // Import the scripts you need
// importScripts('https://www.gstatic.com/firebasejs/10.5.2/firebase-app-compat.js')
// importScripts('https://www.gstatic.com/firebasejs/10.5.2/firebase-messaging-compat.js')

// // Initialize Firebase in the service worker
// firebase.initializeApp({
//   apiKey: "AIzaSyBG_dzCSkz76eZ0W0jQO1spffUtfpkCH14",
//   authDomain: "pwaa-7315f.firebaseapp.com",
//   projectId: "pwaa-7315f",
//   storageBucket: "pwaa-7315f.firebasestorage.app",
//   messagingSenderId: "589750460814",
//   appId: "1:589750460814:web:1d1f0d968fe89372b5c4df",
//   measurementId: "G-HQ2FEFRSMV"
// });

// // Retrieve an instance of Firebase Messaging so that it can handle background messages.
// const messaging = firebase.messaging();

// messaging.onBackgroundMessage((payload) => {
//   console.log('[firebase-messaging-sw.js] Received background message ', payload);
//   // Customize notification here
//   const notificationTitle = payload.notification.title;
//   const notificationOptions = {
//     body: payload.notification.body,
//     icon: payload.notification.icon
//   };

//   self.registration.showNotification(notificationTitle, notificationOptions);
// });