Topic: can't add service worker to mdb

Afshar pro asked 6 years ago


It seems that mdb has a problem with service worker. I've downloaded ng-uikit-pro-standard-6.1.2 and then try adding PWA features by running ng add @angular/pwa and it work good, you see service worker is running in chrome devtools. But... When I add <mdb-spinner></mdb-spinner> to the end of app.component.html then service worker don't work anymore.

Damian Gemza staff commented 6 years ago

Dear Afshar, Does your console or terminal throw you any errors when adding mdb-spinner element? Also, how can I reproduce your case on my application? Best Regards, Damian

Afshar pro commented 6 years ago

No, there isn't any console error Reproduce in this way: 1. use this project: ng-uikit-pro-standard-6.1.2 2. run this command in the root of project: ng add @angular/pwa 3. add to the end of app.component.html 4. check in the chrome devtools to see that there isn't any registered service worker

Damian Gemza staff commented 6 years ago

Dear Afshar, Please check those images. I've tried to reproduce it in my Chromium browser. First link contains screenshots without mdb-spinner element: https://imgur.com/a/uHASKHm Second link contains screenshot with mdb-spinner element: https://imgur.com/a/hnk8PBT I don't see any changes in ServiceWorkers. Best Regards, Damian

Afshar pro commented 6 years ago

For second case (with mdb-spinner), hit Ctrl+F5 and you will see there isn't any service worker

Afshar pro commented 6 years ago

Also in provided screenshots I didn't see any service worker registered for your app (there is some new-tab service workers which is owned by chromium itself)


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags