What happened?
It seems there is an issue with the @onesignal/node-onesignal@5.3.1-beta1 in which, if I create a notification class object:
const notification = new Notification();
notification.target_channel = 'email';
client.createNotification(notification);
The target_channel is undefined. I started to have this issue when I was integrating the email target channel.
HOWEVER, if I create the notification with:
client.createNotification({
...notification,
target_channel: 'email
});
It does work. I tried also with the alpha version and the problem is the same.
Steps to reproduce?
1. Install @onesignal/node-onesignal@5.3.1-beta1
2. Add the following snippet:
const notification = new Notification();
...include subscription_ids or aliases
notification.target_channel = 'email';
client.createNotification(notification);
What did you expect to happen?
Expect to send emails and not push notifications
Relevant log output
Code of Conduct
What happened?
It seems there is an issue with the
@onesignal/node-onesignal@5.3.1-beta1in which, if I create a notification class object:The target_channel is
undefined. I started to have this issue when I was integrating theemailtarget channel.HOWEVER, if I create the notification with:
It does work. I tried also with the alpha version and the problem is the same.
Steps to reproduce?
What did you expect to happen?
Expect to send emails and not push notifications
Relevant log output
Code of Conduct