rudderlabs / rudder-sdk-node

Node SDK for RudderStack - Open-source, warehouse-first Customer Data Pipeline and Segment-alternative. It collects and routes clickstream data and builds your customer data lake on your data warehouse.
https://www.rudderstack.com
Other
6 stars 13 forks source link

BUG : NO documentation of how to send push notification to one signal #141

Closed nabeelasjid1 closed 6 months ago

nabeelasjid1 commented 7 months ago

share the link please, where I can read about it

MoumitaM commented 7 months ago

Hello @nabeelasjid1, Can you confirm that the following statement is correct? You have a node source and you have connected the OneSignal destination. Now you want to send Push notifications.

Here is the doc for OneSignal: https://www.rudderstack.com/docs/destinations/streaming-destinations/onesignal/ Here it is mentioned that

It is recommended to send device.token for push notifications.

So, when triggering events from Node SDK you need to set the device token in context.device.token to send push notifications.

MoumitaM commented 6 months ago

Assuming it is resolved since there is no further communication.