Questions tagged [angular-pwa]

154 questions
2
votes
2 answers

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 least works smoothly while being online). However,…
Domenic
  • 708
  • 1
  • 9
  • 23
2
votes
2 answers

How to hide IOS safari address bar on scroll?

I am building a PWA and finding it difficult to hide the IOS safari navbar (address bar) on scrolling, I tried all the solution available but unfortunately, nothing helped. Is there any way to hide the address bar on scrolling for iPhone (IOS 7+)…
2
votes
1 answer

How to open additional app windows for a Desktop PWA?

I'm working on a PWA. This is a three-part question. For Desktops, I want to open content in a new app window (non-browser) once the app is installed. Any ideas? If I can open a new app window, then how do I make it part of the same process and…
wooldridgetm
  • 2,500
  • 1
  • 16
  • 22
2
votes
2 answers

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 explained here and here. How can I add response headers…
2
votes
0 answers

localhost:8080 for Angular PWA site returns Index of / instead of the default landing page for Angular?

I am running http-server -c-1 to serve a simple http server to test my angular PWA app. However each time I visit localhost:8080 i get the Index of/ page. My manifest.json is configured for "start_url": "http://localhost:8080/" just like in the…
O.MeeKoh
  • 1,976
  • 3
  • 24
  • 53
2
votes
2 answers

Angular universal + pwa ERROR { Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'ngsw_worker.es6.js.map'

I've set up an universal and pwa app. Is there a way to fix this error ? You can see a DEMO (the first push :) ) https://blogial-client.herokuapp.com/ SERVER SIDE CONSOLE ERROR { Error: Uncaught (in promise): Error: Cannot match any routes. URL…
Whisher
  • 31,320
  • 32
  • 120
  • 201
1
vote
0 answers

installing @angular/pwa results in error: A dynamic import callback was not specified

Installing @angular/pwa gives error: $ ng add @angular/pwa --project angular-tic-tac-toe ℹ Using package manager: npm ✔ Found compatible package version: @angular/pwa@15.2.9. ✔ Package information loaded. The package @angular/pwa@15.2.9 will be…
user3132457
  • 789
  • 2
  • 11
  • 29
1
vote
0 answers

PWA Icon on iOS is not available after adding to home screen

I have PWA support in the application, and icons are not always visible on the screen. After thoroughly examining all PWA forums, no answer seemed to solve the problem. Here is the index.html file(web app manifest and icon attached):
1
vote
0 answers

Angular pwa angular/material ios, input number with ng-oninit focus() unfocus right after init

I have an angular pwa and I have a dialog that pop up when i click a button, when the type is text it works just fine but i need it to be number because of the return type, but when i put type number it unfocus right after, it shows the keyboard for…
1
vote
1 answer

ng add @angular/pwa Old version compatible

When installing @angular/pwa I get a very old suggested version: PS C:\client> ng add @angular/pwa --project client ℹ Using package manager: npm ✔ Found compatible package version: @angular/pwa@0.5.3. ✔ Package information loaded. The package…
1
vote
0 answers

PWA running when http-server is stopped

I am using http-server to deploy my angular app on my computer just for doing some performance tests. Here is the results of the deployment: And when I stop the server, the terminal tells me that http-server is stopped: I used netstat to make sure…
fayabobo
  • 81
  • 1
  • 1
  • 7
1
vote
1 answer

Angular routing does not work in progressive web apps

I have added PWA functionality to my angular app. However, since then, the routes are not working as they would do usually in the angular app. I couldn't find any help online as they all say when using ng add, everything should work find. I'm…
Motassem Jalal
  • 1,254
  • 1
  • 22
  • 46
1
vote
0 answers

Is it possible get a list of all available wifi networks in a angular PWA app on Android or windows

I am working on a Angular PWA app. I want to show a list of available wifi networks to the user. I am not able to find way to do this as every tutorial is about how to know internet connection status only.
1
vote
0 answers

Unable to connect to backend urls with angular pwa

I am trying to setup angular pwa with our application. We are using proxy.conf.json to route our apis to other backend urls. The following the content of proxy.conf.json: { "/api": { "target": "http://localhost:7002", "secure": false, …
1
vote
1 answer

Angular Error when project building since service worker is added

Today it is time to implement PWA in my application, I have already done it in some other applications without problem .. but today nothing happens as expected ... when I launch the construction of the project, during the last step "generation of…
Damien PAYET
  • 161
  • 2
  • 9