Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to integrate capacitor-pwa-firebase-msg-sw.js? #5

Open
diegodlh opened this issue Aug 6, 2020 · 0 comments
Open

How to integrate capacitor-pwa-firebase-msg-sw.js? #5

diegodlh opened this issue Aug 6, 2020 · 0 comments

Comments

@diegodlh
Copy link
Contributor

diegodlh commented Aug 6, 2020

First of all, thank you very much for this plugin!

The readme explains that until ionic-team/capacitor#1892 is integrated in Capacitor 3 one has to "integrate the generated service-worker capacitor-pwa-firebase-msg-sw.js that is written to the www folder" on one's own. Does this mean that precapcopyweb ignores the serviceWorker.name and serviceWorker.combineWorkers parameters set in capacitor.config.json?

I'm using Ionic React. I managed to have your plugin working by registering capacitor-pwa-firebase-msg-sw.js instead of React's service worker service-worker.js. I understand that if I want to use both, I would have to manually integrate them into an aggregate capacitor-sw.js that I can register instead. Can you explain how to do this?

Thanks!

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

No branches or pull requests

1 participant