From fd86fb980553cd821c9cc3dea69e75ec0fd6c832 Mon Sep 17 00:00:00 2001 From: harshasiddartha Date: Mon, 3 Nov 2025 00:27:07 +0530 Subject: [PATCH] fix(firebase_messaging): fix incorrect HTML example for service worker registration Separated inline JavaScript from script tag with src attribute. Browsers ignore inline JavaScript when a script tag has a src attribute, which was preventing the service worker registration from running. Fixes #17837 --- docs/cloud-messaging/receive.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/cloud-messaging/receive.md b/docs/cloud-messaging/receive.md index 3aeb651f455f..1d438fd1a6fa 100644 --- a/docs/cloud-messaging/receive.md +++ b/docs/cloud-messaging/receive.md @@ -189,7 +189,9 @@ The file must import both the app and messaging SDKs, initialize Firebase and ex Next, the worker must be registered. Within the `index.html` file, register the worker by modifying the ` + +