Questions tagged [angular-pwa]

154 questions
1
vote
2 answers

How to use SSR pages when online, and fallback to cached index.html when offline

I'm using Angular PWA and Angular Universal at the same time, and I'm playing with the offline navigation. The behavior I'm trying to implement for navigation requests is: When online, serve the server-side rendered pages for maximum first paint…
Guerric P
  • 30,447
  • 6
  • 48
  • 86
1
vote
1 answer

How to set max-age for assetGroups resources?

I tested my angular pwa on Lighthouse and got back the following: I have altered my ngsw-config.json to try to add cacheConfig for the assetGroups, however it seems that is only valid for the dataGroups? I have also tried editing my htaccess file…
1
vote
0 answers

Angular Server Side Rendering and PWA

I've just added PWA functionality to my invoice website. It's working fine but it broke the server side rendering, first pageview is OK, and requesting by CURL is ok too, but if you reload the page you get an ugly blink and the pre-translated text…
1
vote
0 answers

Angular PWA timeout without index.html in URL

I'm building a Progressive Web App with Angular 6. I have generated my project with Angular CLI then added the PWA with ng add @angular/pwa. I have deployed my project on Github-Pages. The Manifest and the Service-Worker are recognized by Google…
1
vote
2 answers

Cannot read property 'entries' of undefined in Angular 6

before anyone marks this as duplicate, I have tried all the solutions posted, and I have been to GitHub issues and here in StackOverflow, none of the solutions have worked for me. Whenever I try to generate anything in angular it gives me this…
lulliezy
  • 1,741
  • 5
  • 24
  • 49
1
vote
1 answer

Opening a Single Page App PWA using a non-base URL when offline

Let's take an example PWA (Progressive Web App) built with an Single Page App (SPA) framework like Angular - https://www.ngcolombia.com. Open the site. Navigate to a different page, eg: https://www.ngcolombia.com/speakers. Go offline and hit reload…
1
vote
0 answers

angular 6 pwa does not working properly

1) when my internet connection is on, I click on add to home screen in chrome browser. after installation, I open the app, the app is not properly working like I show a urlbar as chrome browser. its like a browser. 2)when my internet connection is…
1
vote
0 answers

I can't uninstall the existing service worker

I have created basic sample application and integrated angular/pwa. In ngsw-config .json file i added datagroups for api call. Now i can able to download the application and api call is working fine in offline too. After that i moved to my…
0
votes
0 answers

Offline POSTs with Progressive Web Apps in angular- post calls are not working in offline

Offline POSTs with Progressive Web Apps in angular- post calls are not working in offline. how to success POST request post request How post calls are working in offline pwa? .. please Explain how to do pwa for post requests.
0
votes
0 answers

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 its own through the app.module. It works fine in…
0
votes
0 answers

Offline fallback for POST calls in Angular PWa

Can someone help with the implementation of offline fallback page for POST request or routing requests which fails in Angular PWA? I have created the scripts for loading fallback page inside a custom service worker file, where i listen to the fetch…
0
votes
0 answers

Searchspring widget created mulitple time in pwa site

When we have implement searchspring js based soultion one of my project, we faced issue update bundle.js based on view page that searchspring bundle.js we change parameters but it create issue add duplicate same widget add into our site Duplication…
0
votes
1 answer

How doDeploy and host a PWA on a php webpage

I have built a PWA with ionic/angular and host on bluehost with https when I try to link to the site index.html I revise the following errors Failed to load resource: the server responded with a status of 404 ()polyfills.js:1 Failed to load…
Thomas Degroot
  • 441
  • 1
  • 12
  • 32
0
votes
0 answers

Ngsw - Degraded due to failed initialization: Failed to retrieve hashed resource from the server

My angular app with service worker is working as expected locally with offline mode as well. But when i deployed the app, the offline mode is not working. And after each call, i can see one more call made in online mode which is happening all the…
0
votes
1 answer

Angular: Call service worker push notification event from service

In angular I want to call the service worker push event from my custom service. Is it possible? I added this code to my service. it's work on desktop and android but on iphone not…