// Give the service worker access to Firebase Messaging. // Note that you can only use Firebase Messaging here. Other Firebase libraries // are not available in the service worker. importScripts('https://www.gstatic.com/firebasejs/8.4.2/firebase-app.js'); importScripts('https://www.gstatic.com/firebasejs/8.4.2/firebase-messaging.js'); // Initialize the Firebase app in the service worker by passing in // your app's Firebase config object. // https://firebase.google.com/docs/web/setup#config-object firebase.initializeApp({ apiKey: "AIzaSyC1EAcXsRx-zQo3aZLOI54K_WSW-udSPts", authDomain: "accelboon-5d8b5.firebaseapp.com", databaseURL: 'https://accelboon-5d8b5.firebaseio.com', projectId: "accelboon-5d8b5", storageBucket: "accelboon-5d8b5.appspot.com", messagingSenderId: "73882119879", appId: "1:73882119879:web:1f359ea29bf8e14f0a98e2", }); // Retrieve an instance of Firebase Messaging so that it can handle background // messages. const messaging = firebase.messaging();