lib/notification_pusher/one_signal.rb in notification-pusher-onesignal-1.2.3 vs lib/notification_pusher/one_signal.rb in notification-pusher-onesignal-1.2.4
- old
+ new
@@ -6,10 +6,10 @@
if options[:player_ids].any?
::OneSignal::Notification.create params: {
app_id: options[:app_id],
url: options[:url] || notification.metadata[:onesignal_url],
contents: options[:contents] || notification.metadata[:onesignal_contents].to_h,
- headers: options[:headers] || notification.metadata[:onesignal_headers].to_h,
+ headings: options[:headings] || notification.metadata[:onesignal_headings].to_h,
subtitle: options[:subtitle] || notification.metadata[:onesignal_subtitle].to_h,
include_player_ids: options[:player_ids]
}, opts: { auth_key: options[:auth_key] }
end
end