// 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/5.7.3/firebase-app.js'); importScripts('https://www.gstatic.com/firebasejs/5.7.3/firebase-messaging.js'); // Initialize the Firebase app in the service worker by passing in the // messagingSenderId. var config = { apiKey: "AIzaSyCl_Zg9EGMokF_s4D9IhGVNOpgRrsGeUYo", authDomain: "jido-bc94b.firebaseapp.com", databaseURL: "https://jido-bc94b.firebaseio.com", projectId: "jido-bc94b", storageBucket: "jido-bc94b.appspot.com", messagingSenderId: "303924224462" }; firebase.initializeApp(config); // Retrieve an instance of Firebase Messaging so that it can handle background // messages. const messaging = firebase.messaging();