TF-2460 Fix real time updates for web are broken
This commit is contained in:
@@ -11,4 +11,10 @@ firebase.initializeApp({
|
||||
appId: "...",
|
||||
});
|
||||
// Retrieve an instance of Firebase Messaging so that it can handle background messages.
|
||||
const messaging = firebase.messaging();
|
||||
const messaging = firebase.messaging();
|
||||
|
||||
const broadcast = new BroadcastChannel('background-message');
|
||||
|
||||
messaging.onBackgroundMessage((message) => {
|
||||
broadcast.postMessage(message);
|
||||
});
|
||||
Reference in New Issue
Block a user