I did everything as written in \"https://angular.io/guide/service-worker-getting-started\" to make my application PWA.
Used exactly this commands:
n
Be aware that browsers does not register service workers for HTTP unless it's localhost.
Running http-server, the console showed that the application will be served from the following URLs: http://10.40.59.29:8080, http://127.0.0.1:8080, http://192.168.255.209:8080.
Don't forget to replace the IP address to localhost like http://localhost:8080/