0

I've created an Angular PWA application and built it by running: ng build --prod.

It has built the production ready application successfully.
I've ran the built application in local by running command: http-server -o, It was running as expected.

Problem:
When I've deployed in production's server tomcat apache webapp directory and ran it I am getting: Service worker is not registered or does not control the Start URL.

Service worker is not registering in my production environment.

Please Help me Thank you

PrakashG
  • 1,642
  • 5
  • 20
  • 30
Vinay Nvd
  • 65
  • 5

1 Answers1

1

You need to have HTTPS connection to register a service worker. But still it works on localhost without HTTPS.

https://developers.google.com/web/fundamentals/primers/service-workers/#you_need_https

nadunc
  • 639
  • 4
  • 8