DEV Community

Discussion on: Push Notifications in ReactJS with OneSignal

 
devpato profile image
Pato

You have to enter a localhost url that way the form will detect it and give you the options you need

Thread Thread
 
kannant14 profile image
Kannan T

Thanks it worked with localhost now, now ill show the issue am facing

dev-to-uploads.s3.amazonaws.com/up...

Thread Thread
 
devpato profile image
Pato

Did you download and add the sdk files into your project?

5) Inside of the React project, the first thing you are going to do is to add the services worker files you downloaded into your PUBLIC folder.

You should be adding 2 files:

OneSignalSDKUpdaterWorker.js
OneSignalSDKWorker.js

You can download the files here too github.com/OneSignal/OneSignal-Web...