Questions tagged [angular-pwa]
154 questions
1
vote
0 answers
How to trigger the beforeinstallprompt event on my PWA?
I build a PWA using Angular 9 which can be seen here and I implemented an beforeinstallprompt event handler so as to offer the user a way to install the PWA as an app on the screen device. But it never receives this event. The Chrome PWA audit…

Stephane
- 11,836
- 25
- 112
- 175
1
vote
1 answer
Angular + PWA = No SSR?
I have configured an angular application with SSR, which works very well.
Now that I made my app a PWA using ng add @angular/pwa, the app is no longer pre-rendered.
I have to reload the page with Ctrl+Shift+R, then it is pre-rendered again.
I don't…

DeZmend
- 21
- 3
1
vote
0 answers
Getting the error Rolling back node-pre-gyp@0.14.0 failed when running npm install @angular/pwa
Whenever I run NPM i @angular/pwa I get the following error:
npm WARN rollback Rolling back node-pre-gyp@0.14.0 failed (this is probably harmless): EPERM: operation not permitted, rmdi…

hilario_cassio
- 35
- 1
- 6
1
vote
2 answers
Service worker registration failed -- PWA Not working after Universal Prerendering implementation in Angular 9
Error Throwing in the console Log
The script has an unsupported MIME type ('text/html').
Service worker registration failed with: DOMException: Failed to register a ServiceWorker for scope ('https://localhost:4000/') with script…

Techie Sakthi
- 73
- 1
- 8
1
vote
1 answer
Failed to register a ServiceWorker - Angular, Express
I am serving my angular app via an Express server in HTTPS (for PWA enablement). In my development environment, I am able to get PWA with the same Server and angular code. But in higher environment receiving error like this
ERROR Error: Uncaught…

Jayanth
- 485
- 3
- 9
- 17
1
vote
0 answers
Error while adding @angular/pwa package : Invalid rule result: Instance of class Promise. here is how i resolved it for 7.1.4 angular version
Run ng add @angular/pwa@0.7.4 command in your project directory and all required files for pwa will be added to your root directory:

arc123
- 11
- 3
1
vote
0 answers
Is localStorage of safari browser accessible by device pwa app in ios?
I have made an angular application, in which PWA implementation is also done. It runs fine in android device. It basically stores logged in user data in localStorage. So when I open the app through browser and then click on add to home screen. App…

JAYDIP HIRAPARA
- 297
- 4
- 18
1
vote
1 answer
service worker is not removed after uninstalling PWA app in angular
I have created PWA app using angular. It works fine after installing app. Now I open website and login into website and credentials for that user is stored in localStorage. I click on add to home screen and open PWA app, it works fine. Then I…

JAYDIP HIRAPARA
- 297
- 4
- 18
1
vote
1 answer
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.checkForUpdate().then(() => {
…

Sherly Febrianti
- 1,097
- 15
- 33
1
vote
0 answers
Can I use angular pwa for angular 7?
I am trying to add service workers to my Angular 7 application. I read on the angular documentation that is should be the last angular version for pwa to work, but i want to keep 7.2.3. When I am making ng add @angular/pwa --project -name- is added…

Alex Alexa
- 107
- 9
1
vote
0 answers
How do I Git pull an Angular app to a local Angular-pwa enabled project?
I created an angular app which I pushed to my Bitbucket repository. To turn my angular app into a Progressive Web App, I followed this step by step guide.
The result, was a newly created folder (as per the guide) called angular-pwa. I then cd into…

SirBT
- 1,580
- 5
- 22
- 51
1
vote
2 answers
Why cant my Angular CLI find module '@angular/compiler-cli/ngcc'?
After successfully installing the PWA component in order to make my Angular app a Progressive Web Application via ng add @angular/pwa --project myProjectName, I cant seem to fire up my app any more.
When I try starting up my app via ng serve -o I…

SirBT
- 1,580
- 5
- 22
- 51
1
vote
1 answer
Service worker allowing app name to change in angular 7
I have added the PWA to my existing angular app, after which browser is allowing to add my app to home screen with mentioned app icon, name, description etc. The issue is while adding app to home screen it allows the user to change the app name…

Palash Agrawal
- 191
- 14
1
vote
0 answers
ERR_CERT_COMMON_NAME_INVALID error on HTTPS server
I am trying to host an angular app on my local machine on https for it to access from my iPad.
I need a secure https connection to be established, but I am getting ERR_CERT_COMMON_NAME_INVALID error.
I have created an SSL certificate and using it…

user11714526
- 11
- 1
1
vote
1 answer
Angular PWA not caching server requests
I made a site which should work also as a PWA with Angular 8. I used Angular Universal for SSR, too. It works, also offline. The problem is that only the site is cached, but not the server requests. I added the dataGroups to the ngsw settings.
These…

EuberDeveloper
- 874
- 1
- 14
- 38