Questions tagged [angular-pwa]
154 questions
4
votes
2 answers
Angular PWA error Site cannot be installed: no matching service worker detected
I have a website (Angular 9.0.1), I added the @angular/pwa package to turn it into a PWA and it's not working.
The website is on production site but with test data right now on https://new.indomablestore.com
I have checked that the required files…

Iñigo Gorosabel
- 502
- 1
- 4
- 22
4
votes
1 answer
The prompt() method must be called with a user gesture error in angular PWA
I have developed PWA in my angular project, PWA install banner is showing up on the chrome browser by calling the prompt() event like below,
this.promptEvent = event;
this.promptEvent.prompt();
but sometimes it is throwing an error
The prompt()…

Siva Kumar S
- 409
- 1
- 6
- 21
4
votes
4 answers
Localhost throwing invalid response after running http-server for Angular PWA
I have installed PWA to my Angular application by ng add @angular/pwa and followed the all necessary steps.
To run PWA locally I have installed http-server globally by npm i -g http-server
After building production by ng build --prod, I ran…

Siva Kumar S
- 409
- 1
- 6
- 21
4
votes
1 answer
Angular 6 @angular/pwa - sw does not successfuly serve the manifest's start_url
I've built a PWA using angular 6 and the @angular/pwa package.
I've been trying to fix this but no matter what I do, I'm getting the start_url error. I have tried:
Using absolute links
Making sure the start_url is within the SW's scope (sw is in…

SebastianG
- 8,563
- 8
- 47
- 111
4
votes
5 answers
Path "/ngsw-config.json" already exists
I have created a new angular project. Then I add
ng add @angular/pwa I got an error like this even I can't find the ngsw-config.json file
Path "/ngsw-config.json" already exist.
In angular CLI version is 6.1.1.
Invalid rule result:…

Pooja Patel
- 89
- 3
- 9
4
votes
1 answer
Can Angular 5 Service Worker fetch assets in background
I'm ramping up on progressive web apps using Angular 5. We have a CMS that delivers raw JSON for our application. For content that has images, the JSON contains URLs to the images residing on our server. I'm able to retrieve from our CMS a list…

Tom Schreck
- 5,177
- 12
- 68
- 122
3
votes
2 answers
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 you start any kind of recurrent asynchronous…

Daniel Kucal
- 8,684
- 6
- 39
- 64
3
votes
0 answers
PWA: prevent urls from opening in the PWA
I've built an angular app using @angular/pwa, that supports external logins like Microsoft, Google, Facebook and Twiitter. When a user wants to signin using an external login, I'm using window.open to open the url hosting the Challenge.
The problem…

Pieterjan
- 2,738
- 4
- 28
- 55
3
votes
0 answers
Angular PWA error: Bootstrap call not found
I tried
ng add @angular/pwa
But I got an error saying (additionally, it is not creating/modifying any files in the project)
Bootstrap call not found
Here are the specifications
npm: '7.20.0'
node: '12.18.3',
angular-cli: '11.2.14' (project)
And…

Shardul
- 90
- 1
- 9
3
votes
1 answer
How to reload PWA cache? - Angular 11 PWA, Chrome Android
I've been struggling the last couple of days with loading a new PWA version in my Angular 11 app. Starting to pull my hair out!
This is not happening for me:
"Every time the user opens or refreshes the application, the Angular service worker checks…

Emmanuel
- 4,933
- 5
- 46
- 71
3
votes
1 answer
After deployment Angular PWA service worker does not fetch the api response from cache in Offline mode
With localhost Angular PWA service worker works fine in all scenarios, BUT After deployment (on Azure server with GIT pipeline), In Online mode all works fine: 1. Service Worker is registered. 2. API responses are cached. Now when i go offline, the…

ASR
- 311
- 2
- 14
3
votes
1 answer
Why does my Angular PWA fails on Lighthouse PWA audit while everything work fine when i manually test it?
I you go to the app https://quotesaboutjesus.netlify.com/quotes and look at Application tab in Chrome Dev tool, you'll see after few seconds the service worker runing well... and the app work well in online mode.
But Lighthouse audit result always…

WilChrist
- 43
- 4
3
votes
1 answer
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 ngsw-config.json and adding a dot before the links…

1058u4
- 172
- 1
- 10
3
votes
0 answers
PWA ServiceWorker does not work with Asp.net core Spa Extenstions
I created a sample project aspnet.core 2.1 webapplication with angular and added pwa with ng add @angular/pwa
Then created a small app with two controllers to test.
Now if I run the app with angular client in spaextension, the serviceworker is…

Andre
- 662
- 1
- 8
- 19
3
votes
0 answers
How to register multiple service worker in angular 6?
I have converted my Angular 6 application into Progressive Web Apps, by registering the service worker in app.module .ts but also i am registering one more service worker for firebase push notification but i am unable to do that, where and how to…

Madhuri Rahane
- 41
- 1
- 5