First, register an account in OneSignal
https://dashboard.onesignal.com/
Create new app
Select Web
The default selection is ok ( except 5 - Advance push notification ), just enter your data.
Toggle on “Service workers” and for “Path to service worker files” enter
/vendor/onesignal/
OneSignalSDKWorker.js
OneSignalSDKWorker.js
/