IceBreakerG / ngx-version-check

Angular library for versioning an Angular application and checking for updates to alert the user.
5 stars 3 forks source link

PWA/Service Worker integration - use ngsw-config.json instead #1

Open murraybauer opened 4 years ago

murraybauer commented 4 years ago

For projects with a service worker/PWA, it would be great if this lib reused the ngsw-config.json version information rather than create a separate file and new build step.

Browser that don't support service workers will require regular XHR's to check for newer versions, as do PWA with service workers as the service worker still onlu checks on page reloads I believe so 1 approach supports eveything.

IceBreakerG commented 4 years ago

@bladerunner41 I honestly didn't know about that when I originally wrote this (roughly a year ago or so), but it might be something I can look into once I understand how service workers work. I've been in the process of splitting up services for an application at work, and this was something I felt was generic enough (had nothing to do with the company) that I could make public to help other people. I'll read up on it though. Thanks.