Sha256: 7579d90d92d64acecbd063c4d4a482bbc00323467d2e5cdec996fa7a258f7b5d
Contents?: true
Size: 723 Bytes
Versions: 1
Compression:
Stored size: 723 Bytes
Contents
class ApnsChannel class << self def default_options { description: "Push Notifications" } end def deliver(notification, options={}) NotifyUser::Apns.push_notification(notification) #check for the existence of development api keys and resend for development if !ENV['DEV_UA_APPLICATION_KEY'].nil? && !ENV['DEV_UA_APPLICATION_SECRET'].nil? && !ENV['DEV_UA_MASTER_SECRET'].nil? Urbanairship.application_key = ENV['DEV_UA_APPLICATION_KEY'] Urbanairship.application_secret = ENV['DEV_UA_APPLICATION_SECRET'] Urbanairship.master_secret = ENV['DEV_UA_MASTER_SECRET'] NotifyUser::Apns.push_notification(notification) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
notify_user-0.0.12 | lib/notify_user/channels/apns/apns_channel.rb |