importScripts("https://www.gstatic.com/firebasejs/9.x.x/firebase-app.js");
importScripts("https://www.gstatic.com/firebasejs/9.x.x/firebase-messaging.js");

firebase.initializeApp({
  apiKey: "AIzaSyBcfEIJ36rd9-qQIPaS-lqnvmcIKjHc40Q",
  authDomain: "navyabakeshop-b4c56.firebaseapp.com",
  projectId: "navyabakeshop-b4c56",
  storageBucket: "navyabakeshop-b4c56.firebasestorage.app",
  messagingSenderId: "1093814521498",
  appId: "1:802672179205:web:793b8f0c17ec00d1f6446c",
});

const messaging = firebase.messaging();

messaging.onBackgroundMessage((payload) => {
  console.log("Received background message:", payload);
});
