We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
await
onBackgroundMessage
1 parent 086df7c commit e8ddd8bCopy full SHA for e8ddd8b
packages/messaging/src/listeners/sw-listeners.ts
@@ -96,7 +96,7 @@ export async function onPush(
96
const payload = externalizePayload(internalPayload);
97
98
if (typeof messaging.onBackgroundMessageHandler === 'function') {
99
- messaging.onBackgroundMessageHandler(payload);
+ await messaging.onBackgroundMessageHandler(payload);
100
} else {
101
messaging.onBackgroundMessageHandler.next(payload);
102
}
0 commit comments