DEV Community

Discussion on: Push Notifications in ReactJS with OneSignal

Collapse
 
devpato profile image
Pato • Edited

Hi I need to update the docs but essentially you will do this as the image shown, that way you dont have to keep redeploying our app all the time

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

Thread Thread
 
kannant14 profile image
Kannan T • Edited

Hi i can't see local testing button from my side attaching screenshot as reference

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

Thread Thread
 
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...