Angular 7 - service worker not registered

前端 未结 3 838
余生分开走
余生分开走 2020-12-29 05:15

I did everything as written in \"https://angular.io/guide/service-worker-getting-started\" to make my application PWA.

Used exactly this commands:

n         


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-29 05:52

    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/

提交回复
热议问题