diff --git a/packages/messaging/src/listeners/sw-listeners.ts b/packages/messaging/src/listeners/sw-listeners.ts index d2e80262cdb..3e485c8557e 100644 --- a/packages/messaging/src/listeners/sw-listeners.ts +++ b/packages/messaging/src/listeners/sw-listeners.ts @@ -96,7 +96,7 @@ export async function onPush( const payload = externalizePayload(internalPayload); if (typeof messaging.onBackgroundMessageHandler === 'function') { - messaging.onBackgroundMessageHandler(payload); + await messaging.onBackgroundMessageHandler(payload); } else { messaging.onBackgroundMessageHandler.next(payload); }