node-onesignal
node-onesignal copied to clipboard
Missing Headings, just only works for Contents (Messages)
I appreciated for this awesome lib. I'd like to send headings data with contents in payload. Please update !! Thanks again
Hi,
You can use the headings, I had the same problem, you only use the message as an object to specify the language, for the headings it goes in the options object.
Here's an example:
client.sendNotification(
{
en: 'your message',
},
{
headings: { en: 'your headings'},
},
);