mobileapplicationPassvault/web/firebase-messaging-sw.js

21 lines
702 B
JavaScript

importScripts("https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js");
importScripts("https://www.gstatic.com/firebasejs/8.10.0/firebase-messaging.js");
const firebaseConfig = {
apiKey: "AIzaSyAzrqyJKpqnxN0XThGN4HpYdLrDJDJ6Zdc",
authDomain: "novunotification.firebaseapp.com",
projectId: "novunotification",
storageBucket: "novunotification.appspot.com",
messagingSenderId: "973222359655",
appId: "1:973222359655:web:7a936bb957c5a629015ac2",
measurementId: "G-MV3ZN2NXHH"
};
firebase.initializeApp(firebaseConfig);
const messaging = firebase.messaging();
// Optional:
messaging.onBackgroundMessage((message) => {
console.log("onBackgroundMessage", message);
});