Closed classicPintus closed 2 years ago
Howdy Gavino, Thanks for your patience.
The params are passed as initialization options:
this.oneSignal.init({
appId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
serviceWorkerParam: {
scope: "<path scope>"
},
serviceWorkerPath: '<path>'
}).then(() => {
// do other stuff
});
Hope that helps!
It would be amazing if you could provide an example. What would a scope look like?
Hello, I'm not understanding how to use serviceWorkerParam and serviceWorkerPath in combination with this library.
Please Can you provide a little example?
Thank you