node-onesignal icon indicating copy to clipboard operation
node-onesignal copied to clipboard

Missing Headings, just only works for Contents (Messages)

Open AppHero2 opened this issue 8 years ago • 1 comments

I appreciated for this awesome lib. I'd like to send headings data with contents in payload. Please update !! Thanks again

AppHero2 avatar Oct 12 '17 16:10 AppHero2

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'},
  },
);

BrunoWilkinson avatar Dec 06 '17 07:12 BrunoWilkinson