First, register an account in OneSignal

https://dashboard.onesignal.com/

Create new app

Untitled

Select Web

Untitled

The default selection is ok ( except 5 - Advance push notification ), just enter your data.

Untitled

Toggle on “Service workers” and for “Path to service worker files” enter

Untitled

/vendor/onesignal/

OneSignalSDKWorker.js

OneSignalSDKWorker.js

/