401 questions
0
votes
0
answers
43
views
Does Angular service worker bypass throttling?
I created a small Angular client/Node Express server and in Chrome tools, simulating a 3G to slow down so I can see when page renders, we prefetch in install with Angular service worker. After the ...
0
votes
0
answers
31
views
Cannot get Network first, then Cache strategy to work with Angular and Spring Boot
I have made an angular PWA and tried implementing a Network first, then Cache strategy since I want to be support offline mode for some api resources.
I have used Google Chrome to simulate no internet ...
1
vote
1
answer
105
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": &...
0
votes
1
answer
122
views
ask user to refresh after deploy build
i am using angular to create a SPA after every deploy i have to hard refresh the page to get the latest content I want to show a popup to user that new version is available you can refresh the browser ...
0
votes
1
answer
63
views
Ng serviceworker not registering after making ngx-indexed-db work
I have installed ngx-indexed-DB to make the app work when offline after installing ng service worker but the problem is after making the indexed DB work the ng service worker is not registering.
my ...
1
vote
0
answers
246
views
SwUpdate Not Working On First Load Before First Service Worker Registered
I'm trying to use a service worker to deliver prompt updates to users actively using the site. Followed the simple steps laid out in: https://angular.io/guide/service-worker-getting-started but I'm ...
0
votes
1
answer
90
views
Angular PWA ngsw-worker.js:1 Uncaught SyntaxError: Invalid or unexpected token (at ngsw-worker.js:1:1)
Using Angular V14.2.
Getting the below error in the console window.
In the Application tab -> service workers menu the status is not getting activated.
App.module.ts file
0
votes
1
answer
742
views
Data path "" must NOT have additional properties(ngswConfigPath)
I downloaded example from angular.io and followed the tour: https://angular.io/guide/service-worker-getting-started#cli-command
ng add @angular/pwa
ng build
I faced this error:
Error: Schema ...
1
vote
0
answers
232
views
Angular PWA: Using Service Worker to do a scheduled job or async task with page/web-app
Am new to angular service workers, and have the following needs
Want to have a separate thread than the one in the app taking care of purging every n minutes an indexedDb containing stuff, and notify ...
1
vote
0
answers
492
views
Service Worker in angular 17 not working during offline mode
I had installed service worker by this command @angular/pwa and its also registered successfully but on going offline mode it gives no internet connection the data is not being cached and loaded when ...
0
votes
1
answer
515
views
Angular app, in Chrome browser, using cached CSP headers instead of current ones
Angular app with service worker. CSP headers were updated to add a new frame-src. Safari picked up the header change fine. Chrome is blocking the iframe content, and the details for the block in the ...
1
vote
1
answer
343
views
angular service worker with ngCspOnce - Degraded due to: Hash mismatch (cacheBustedFetchFromNetwork)
Service Worker is broken since I started injecting nonce from nginx in index.html
as in
<app-root ngCspNonce="$requestId"></app-root>
following 1) from https://angular.io/guide/...
0
votes
1
answer
424
views
Angular ServiceWorker fails with TrustedTypes
For a single SPA Angular application, I want to use service workers ; but it conflicts with my CSP security rules...
main.ts:5 This document requires 'TrustedScriptURL' assignment.
Service worker ...
1
vote
1
answer
285
views
Angular Serviceworker doesn't cache index.html
My app doesn't work when offline, because the angular serviceworker doesn't cache my index.html (it does cache my js, css, manifest and ico files).
This only happens as long as my outputPath is within ...
2
votes
1
answer
380
views
Editing Angular service worker for sharing files to PWA via share_target API
The App
I'm building a PWA as a frontend for OpenAI's Whisper, using this API.
The goal is to be able to share WhatsApp voice messages directly to the PWA to transcribe them.
I am using Angular 16.2.2 ...
1
vote
1
answer
251
views
local configuration files are not loading and ngsw.json?ngsw-cache-bust failing in offline mode of Angular 15 PWA application
I Added PWA package to my angular application. Angular CLI version is 15.2.9 and serviceworker version is also 15.2.9. I am facing an issue with the service worker. The service worker is registered on ...
1
vote
1
answer
2k
views
How to set up Angular service workers?
I'm trying to set up Service Workers in my Angular project.
From the CLI inside my project directory I ran this: ng add @angular/pwa --project chatng
It returned "Packages successfully installed&...
1
vote
0
answers
2k
views
Angular Service Worker giving 504 (Gateway Timeout ) Error on reload
I have started to implement service worker to my application. It is registered properly , but when I refresh the page it is giving net::ERR_ABORTED 504 (Gateway Timeout) error. But when I tick the ...
0
votes
0
answers
107
views
Failed to open backingstore in database because not enough space for domain error in chrome of ipad
Steps to reproduce the problem:
1.Application Which using indexed DB and Service worker
Upload few images.
Keep the browser open and use the application next day then repeat the same steps.
Problem ...
0
votes
0
answers
893
views
angular service worker caching every request no matter what even i'm hard reloading still it caching every request which not even in config urls
why my every request is being cached when even did't mentioned anything about whose api address to get cached,
It seems like the ngsw-worker.js is not following the ngsw.json configs
image 1 => ...
0
votes
0
answers
293
views
Dynamically update “firebase-messaging-sw.js” in Angular 11
I have implemented Firebase push notifications in Angular 11 successfully.
Initially, I integrated everything and experienced no issues. However, I encountered a requirement where I needed to have a ...
0
votes
1
answer
600
views
Angular Service Worker - Font Awesome CORS
We have an Angular app that has been in production for about a year and everything is working as expected. This week we deployed support for PWA in the app and for the most part it is working as ...
0
votes
1
answer
111
views
modifying angular ngsw-worker.js
I need to mdify the ngsw-worker.js file in angular14, but I am wondering is it possible or not!?
and how can I rename the ngsw-worker.js to like ngsw.js?
this file is located in my app node-module
2
votes
2
answers
1k
views
Angular Service Worker validation file process
Context
Angular PWA.
Before explaining the error, I have to specify :
We read the Angular service worker documentation
We read this post, specially the validated answer as it looks like our situation ...
1
vote
0
answers
273
views
Service Worker Update angular
I want to implement a version check/update on my angular app.
Read the doc and so on, and I really don't get the thing of asking the user to reload the application. I don't remember any application ...
3
votes
0
answers
823
views
Why are actions not working when clicked in these Angular Push Notifications?
I have implemented everything regarding Push Notifications on my Angular PWA (according to Angular Service Worker Notifications) and even got the notifications to be shown by the browser, however, ...
0
votes
0
answers
351
views
Angular pwa push notification is not working for the other devices rather than PC browser
I have implemented the push notification using Angular v15 PWA service worker and .Net v7 but push notification is not working in other devices example: mobile except pc
how to implement push ...
0
votes
0
answers
173
views
Failed to check for updates: Error: Service workers are disabled or not supported by this browser
Service Worker in Angular send error in console about it not registered. I have a stackblitz code. In console logged errors. I have no ideas how to fix it.
0
votes
1
answer
907
views
Angular Service Worker: Where to add EventListener?
I am trying to build an Angular PWA which is supposed to be offline-capable.
I got most of that already done, but I am struggeling on the events for the service worker:
Where do I use the ...
3
votes
1
answer
1k
views
Angular service-worker scope encountered an error during installation
I am trying to use the Angular service worker but I get an error when trying to use it.
Those are my versions:
Angular CLI: 15.2.0
Node: 16.18.1
Package Manager: npm 8.19.2
OS: linux x64
Angular: 15....
0
votes
2
answers
424
views
Implement service worker to clean cache of the app on each publish
I'm currently working on ASP.Net Core App with Angular 8 for the front-end, so I have some problems with the cache thing; each time I publish a new version of my app, the DOM is not making the changes ...
2
votes
0
answers
72
views
How to solve browser cache and service worker issue
I have two websites with the same domain, the first one (which is the old one also) is developed using MEAN Stack, we were using it for years. We had enabled service worker of Angular.
Now after years ...
1
vote
1
answer
718
views
Angular Service Worker - do hard reload on user navigation via router if update is available
We have implemented the angular service worker in our app and are unhappy with having to ask the user to do a hard reload some seconds after the app has loaded.
Our idea was to trigger the hard reload ...
1
vote
0
answers
36
views
Angular Service Worker for PWA not registering
Hi I am new to coding and angular so please bear with me.
I have not been able to get my service worker registered. I have tried both Chrome and Firefox, but I have been mainly using Chrome. I am ...
0
votes
1
answer
453
views
Angular Service Worker stuck in Safari after logout
We have a WebApp developed with Angular 14. It is deployed on Azure Blob Storage (static website).
Authentification is done with the msal library for javascript. Azure AD B2C is used as identity ...
0
votes
1
answer
321
views
How to make an Angular Service Worker recognize new versions of a deployed application in a static-hosted S3 bucket hosted in AWS CloudFront
When statically hosting an Angular Single-Page Application website in an S3 bucket through CloudFront, the errors have to be set to redirect to the index.html as HTTP 200 responses in order for the ...
2
votes
1
answer
1k
views
problem listening to firebase cloud messaging via angular app
I am able to get the token on angular and successfully sent a message via node.js local server but I cannot receive a message on angular app.
Versions:
-Angular 14
-Firebase Cloud Messaging API (V1) ...
1
vote
0
answers
97
views
Angular PWA load old asset when reopen browser
I have an web app using angular 13 and ngsw with caching features.
The problem is when I deployed a new version to production, then I refresh the page, it's updating to a latest version, but when I ...
1
vote
1
answer
1k
views
Angular Caching Issue
I have an Angular 14 SPA hosted on Firebase and I have the following issue:
The users are using the cached version (previous version) instead of the latest version when accessing the application (...
2
votes
0
answers
466
views
Is there a way to clear the service worker's cache at runtime in Angular 14?
I am using service worker to cache lookups in my Angular 14 PWA application and everything is working fine.
However, the admin in the application has the permission to add/remove lookups options which ...
1
vote
1
answer
555
views
Unable to see Install button on PWA developed on Angular using service workers after publish
I have angular version 12.2. I am using Service Worker. When I run on localhost it works fine and displays install button on browser. But when I deploy it to my server or IIS server, install button ...
1
vote
0
answers
213
views
Is there a way to prevent CORS API requests in service worker?
We have a angular web application that routinely sends a request to another origin. However, we get this error for the api calls.
Here's our configuration for service worker in angular under ngsw-...
0
votes
0
answers
416
views
How to run service worker along with angular ng-serve locally
Having issues in deployment for service workers.
showing error in status #961 trying to install
Trying to run angular ng-serve on port 4200, want to run angular and service worker on
ng-serve
<...
1
vote
0
answers
482
views
Push notification is working fine, but setBackgroundMessageHandler in firebase-messanging-sw.js is not getting called
I am using firebase push notification in my angular application, and I want to add an icon in the notification, and when the user clicks that notification redirect to a specific route in the ...
1
vote
1
answer
238
views
QuotaExceededError: Failed to OpenBackingStore on iOS
We have a more or less big Web-Application. It builds up on Angular and PWA via the Angular tools are activated.
It works all very well and the offline mode also works as it should.
The application ...
1
vote
1
answer
1k
views
How to implement Service Worker in Angular for app update notifications
I have installed the angular service worker module and applied the appropriate code to the app module. I have an updateComponent that has the UI to notify the user that there's a new version available ...
2
votes
1
answer
2k
views
Service worker registration when environment comes from the backend
Angular v14. I’m using https://timdeschryver.dev/blog/angular-build-once-deploy-to-multiple-environments#platformbrowserdynamic implementation to get environment from backend in main.ts and I add it ...
0
votes
1
answer
153
views
How to have an angular client to be updated before calling its corresponding API?
I'm using Angular 13 as a client connecting to a .NET Core backend.
When both the backend API and the client are redeployed to the servers, how can I make sure the preexisting incompatible clients ...
0
votes
2
answers
500
views
What HTTP cache headers should nsgw.json be served with?
I'm deploying an Angular 11 app to an Azure AppService. The app uses a Service Worker. My users are experiencing caching issues. I've fixed a lot of these by setting the cache control header on the ...
0
votes
1
answer
840
views
Failed to load module script – text/html instead of application/javascript
Angular 12, Backend .NET 5 on same IIS instance deployed. No load balancers.
I’m having a text/html instead of application/javascript response issue that occurs rarely and it seems at random and I can’...