Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

@angular/service-worker overlapping functionality with other sw libraries #157

Open
happyahluwalia opened this issue Jun 6, 2017 · 2 comments

Comments

@happyahluwalia
Copy link

Currently the beta of @angular/service-worker is out, however Google already has sw-precache/toolbox and Workbox. I believe with @angular/service-worker it would create confusion to the users.

I was hoping that @angular library would use either of the two libraries underneath with some added functionality. But doesnt seems to be the case. Even the ngsw-manifest specification seems to be different then what sw-precache and workbox would expect.

I guess I am missing something :) Can you please throw some light how this library would be different then the other two and the advantage of using this.

@webmaxru
Copy link
Member

webmaxru commented Jun 6, 2017

Angular Service Worker is not designed to be mixed with any other SW library. It's fully self-standing and doesn't use neither sw-precache nor its newer version Workbox. In terms of PWA tooling for your Angular application you can use one of the approaches (both work fine):

@debu-rnpr
Copy link

debu-rnpr commented Sep 18, 2017

ss
I am using firebase for push notification and its uses firebase-messaging-sw.js file for background notification. I am using @angular/service-worker": "^1.0.0-beta.16 for generating service worker(for resource caching), now how to make these two service workers work together?

currently in application tab(chrome), its showing 2 service workers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants