TF-1802 Fix fcm broken on web
(cherry picked from commit a5c88da70482ff9dfad53b2c3582ec860ca237dc)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
importScripts("https://www.gstatic.com/firebasejs/9.10.0/firebase-app-compat.js");
|
||||
importScripts("https://www.gstatic.com/firebasejs/9.10.0/firebase-messaging-compat.js");
|
||||
|
||||
// Initialize the Firebase app in the service worker by passing in the messagingSenderId.
|
||||
firebase.initializeApp({
|
||||
apiKey: "...",
|
||||
authDomain: "...",
|
||||
@@ -9,4 +9,6 @@ firebase.initializeApp({
|
||||
storageBucket: "...",
|
||||
messagingSenderId: "...",
|
||||
appId: "...",
|
||||
});
|
||||
});
|
||||
// Retrieve an instance of Firebase Messaging so that it can handle background messages.
|
||||
const messaging = firebase.messaging();
|
||||
Reference in New Issue
Block a user