Skip to main content

All Questions

1 vote
0 answers
35 views

angular pwa returning 504 even thought it can work offline properly

I have an Angular application with @angular/pwa here is the ngsw-config.json { "$schema": "../../node_modules/@angular/service-worker/config/schema.json", "index": &...
Robert's user avatar
  • 2,814
0 votes
0 answers
29 views

PWA Scope still showing in undesired routes

I Havea angular project v16 and i want to make a PWA but only on the private section (all routes start with 'pagex/tt') already setted the "scope": "/pagex/tt/" in the manifest ...
chicoo's user avatar
  • 1
3 votes
2 answers
1k views

Angular PWA never entering into stable state

The Angular application I'm working on never gets into stable state, basing on ApplicationRef.isStable, which only emits false once. According to Angular docs: the application will never be stable if ...
Daniel Kucal's user avatar
  • 9,202
1 vote
0 answers
466 views

Are caches created by Angular Service Worker for data groups deleted after a software update?

I have a PWA that needs to download map data before going offline. I have created a data group to cache those resources with the NGSW, and I have created an initialization process to fetch all data ...
Hodossy Szabolcs's user avatar
1 vote
0 answers
556 views

Service worker not working: "ChunkLoadError: Loading chunk 28 failed"

I'm not sure what I'm doing wrong. I'm using Ionic 5 with Angular 11. I have a service worker ngsw-config.json and a webmanifest. What are the correct steps to take to make my web app work offline? To ...
Furkan Öztürk's user avatar
1 vote
0 answers
379 views

ngsw - angular service worker 504 error for document in Offline mode

Am using a angular application where i planned to use the angular /pwa ( ngsw ) for integration and when am loading service worker porperly registerd and i can see items in CacheStorage. But when am ...
Aji's user avatar
  • 474
2 votes
1 answer
330 views

Angular PWA on a NestJS server crashes after new deployment

I am running an Angular PWA (version 11) on a NestJS (version 7) server. After every new deployment, the PWA crashes because the browser tries to load a JavaScript file which is not there anymore and ...
Thomas's user avatar
  • 225
1 vote
1 answer
2k views

Why did angular service worker isn't registered

I have added angular2 pwa to my project but when I try to build and start it with prod build for some reason service worker isn't working. Configuration seems to be proper, I've added and registered ...
user avatar
2 votes
2 answers
4k views

Angular PWA adding background sync without WorkBox

So my question is simple: Is there background sync when using Angular PWA. For certain reasons, I cannot use WorkBox. The only info I have found is: https://github.com/angular/angular/issues/22145 ...
Bjorn Pijpops's user avatar
2 votes
1 answer
1k views

Angular 7 swUpdate breaks unit testing and cannot be mock / override for testing (PWA)

Here is my component for implementing the swUpdate : public thereIsUpdate: boolean; constructor(public swUpdate: SwUpdate) { this.checkForUpdates(); } checkForUpdates() { this.swUpdate....
Sherly Febrianti's user avatar
3 votes
1 answer
3k views

Angular service worker doesn't work in sub directory

I have created a new angular project and added @angular/pwa, I can't figure out how to get the service worker to work when the website is in a directory. I tried adding the folder to every link in ...
1058u4's user avatar
  • 172
2 votes
0 answers
291 views

Angular PWA : caching configuration json

I want to active PWA I success to cache all assets but configuration JSON not caching so my app didn't work correctly in offline mode FYI: I try this in real server with https but the same results so ...
Albaz's user avatar
  • 935
2 votes
2 answers
3k views

Angular PWA with custom offline page

In an Angular (8) app I'd like to add a custom offline page (just a plain simple html-file to begin with). I have set up my app as a PWA (using @angular/pwa and configured everything so that it at ...
Domenic's user avatar
  • 738
0 votes
1 answer
2k views

Angular service worker not running on system IP address

I am implementing the Push notifaication in my application with the help of Article = https://medium.com/@arjenbrandenburgh/angulars-pwa-swpush-and-swupdate-15a7e5c154ac I am using Angular version7 ...
Er Vipin Sharma's user avatar
2 votes
2 answers
2k views

Adding headers to angular service worker responses

Some of the responses from service workers are violating the CSP, and I may need to add this header: Content-Security-Policy = "connect-src *;" to all the responses from service workers as ...
ChrisOdney's user avatar
  • 6,386

15 30 50 per page