Enable Onesignal web SDK. Problem with service worker

I would like to integrate OneSignal web in Flutterflow

If you follow the instructions in https://documentation.onesignal.com/docs/onesignal-service-worker-faq you have to add two things:

  • Some code in the head of the page. This part can be done in the Web publishing section.

  • Add a file OneSignalSDKWorker.js. This is where I'm stuck. I think there is no way to upload a js file to your deployment right? Any thoughts? It can be added to the root or you can specify a subfolder if it would be easy this way

I have tried uploading to a different remote location (other domain) and of course it fails.

2
1 reply