Skip to content

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

@diegodlh

Description

@diegodlh

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions