OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Firebase messaging in production

  • Thread starter Thread starter Arnold agcaballerma Caballero
  • Start date Start date
A

Arnold agcaballerma Caballero

Guest
I have a project that works with FCM. On the localhost, every thing works fine and I get the token for FCM; but, in production, I get this error:

FirebaseError: Messaging: We are unable to register the default service worker. Failed to register a ServiceWorker for scope ('https://myxdomain.com/firebase-cloud-messaging-push-scope') with script ('https://myxdomain/firebase-messaging-sw.js'): A bad HTTP response code (403) was received when fetching the script. (messaging/failed-service-worker-registration).

I'm deploying my app in an Apache server.

<p>I have a project that works with FCM. On the localhost, every thing works fine and I get the token for FCM; but, in production, I get this error:</p>
<blockquote>
<p>FirebaseError: Messaging: We are unable to register the default service worker. Failed to register a ServiceWorker for scope ('https://myxdomain.com/firebase-cloud-messaging-push-scope') with script ('https://myxdomain/firebase-messaging-sw.js'): A bad HTTP response code (403) was received when fetching the script. (messaging/failed-service-worker-registration).</p>
</blockquote>
<p>I'm deploying my app in an Apache server.</p>
 

Latest posts

B
Replies
0
Views
1
Blundering Ecologist
B
Top