Sha256: d4e7990382acc32261dbf63df1334d4ce48065783b0dc5d17bbfe1fc80e9910c
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
require 'one_signal' class NotificationPusher::OneSignal def initialize notification, options = {} 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, include_player_ids: options[:player_ids] }, opts: { auth_key: options[:auth_key] } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
notification-pusher-onesignal-1.0.0 | lib/notification_pusher/one_signal.rb |
notification-pusher-onesignal-1.0.0.beta11 | lib/notification_pusher/one_signal.rb |