You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reading documentation about message personalization, I found a option to send a param called custom_param. But, when I try to send param custom_data, the gem return a error:
`custom_data` is not a valid attribute in `OneSignal::Notification`
Steps to reproduce?
Just create a notification with param `custom_data`.
notification = OneSignal::Notification.new({
app_id: ENV["ONE_SIGNAL_APP_ID"],
template_id: template_id || nil,
include_external_user_ids: user_ids,
custom_data: custom_data || {},
})
api_instance.create_notification(notification)
What did you expect to happen?
I expect the notification been created successfully.