DEV Community

Discussion on: Push Notifications in ReactJS with OneSignal

Collapse
 
devpato profile image
Pato

Hi Sathittham! I want to make sure I'm understanding the question.

1) I send a push notification from the OneSignal portal
2) I received a push notification that has the title and body Ex.

React JS tutorial
Take a look to my new ReactJS tutorial!!

and then in your ReactJS app grab the title of the push notification?

Collapse
 
sathittham profile image
sathittham

Yes, I want to grab data (id, heading, content, data, url, icon) from the notification.

Thread Thread
 
sajideen profile image
Sajideen

Hi @sathittham, I am looking for the same thing. If you have done it, please share the event that was triggered to achieve this.