added firebase for notification

This commit is contained in:
llsajjad
2025-09-20 13:02:02 +03:30
parent 33016e1ef2
commit fff8d42759
9 changed files with 161 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
importScripts("https://www.gstatic.com/firebasejs/9.22.2/firebase-app-compat.js");
importScripts("https://www.gstatic.com/firebasejs/9.22.2/firebase-messaging-compat.js");
firebase.initializeApp({
apiKey: 'AIzaSyAUQhM789-0qZIaIWtwTQXyz9gEtN-TnnU',
authDomain: 'opplens.firebaseapp.com',
appId: '1:1071558853812:web:d9ca896b088ee7da48c3e1',
messagingSenderId: '1071558853812',
projectId: 'opplens',
storageBucket: 'opplens.firebasestorage.app',
measurementId: 'G-GJGP9WB28B',
});
const messaging = firebase.messaging();