added firebase for notification
This commit is contained in:
@@ -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();
|
||||
@@ -2,6 +2,9 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src="https://www.gstatic.com/firebasejs/9.22.2/firebase-app-compat.js"></script>
|
||||
<script src="https://www.gstatic.com/firebasejs/9.22.2/firebase-messaging-compat.js"></script>
|
||||
|
||||
<!--
|
||||
If you are serving your web app in a path other than the root, change the
|
||||
href value below to reflect the base path you are serving from.
|
||||
|
||||
Reference in New Issue
Block a user