Open carrfane opened 3 years ago
For my use case, I need to manually register the service worker only if certain conditions are met, for this, I passed a flag to avoid that the plugin registers the service worker, and I register in another place on my app.
in your ember-cli-build you pass
'ember-service-worker': { ignoreRegistration: true }
and the plugin will not register the service worker, allowing you to do the registration manually in your app.
Why?
For my use case, I need to manually register the service worker only if certain conditions are met, for this, I passed a flag to avoid that the plugin registers the service worker, and I register in another place on my app.
How it works?
in your ember-cli-build you pass
'ember-service-worker': { ignoreRegistration: true }
and the plugin will not register the service worker, allowing you to do the registration manually in your app.