Sha256: 58e789ebd8c441f463cd09b4e32a42471bfc2b830469ed14037bcecf0186e59e
Contents?: true
Size: 651 Bytes
Versions: 14
Compression:
Stored size: 651 Bytes
Contents
require 'active_support/dependencies' module Agilib module PushNotification module Platform module Ios extend ActiveSupport::Concern mattr_accessor :pem @@pem = nil mattr_accessor :port @@port = 2195 def self.send_notification(message, data = {}, device = nil) certificate = @@pem APNS.pem = certificate APNS.port = @@port device_token = device.register unless device_token.nil? APNS.send_notification(device_token, :alert => message, :badge => 5, :sound => 'default', :other => data) end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems