Sha256: d18fb165296551239d5479b9fb05c83d20ddc167f82cd558b1846c00d4b4fd5a

Contents?: true

Size: 499 Bytes

Versions: 19

Compression:

Stored size: 499 Bytes

Contents

module Rpush
  module Daemon
    module Apns
      extend ServiceConfigMethods

      HOSTS = {
        production: ['gateway.push.apple.com', 2195],
        development: ['gateway.sandbox.push.apple.com', 2195], # deprecated
        sandbox: ['gateway.sandbox.push.apple.com', 2195]
      }

      batch_deliveries true
      dispatcher :apns_tcp, host: proc { |app| HOSTS[app.environment.to_sym] }
      loops Rpush::Daemon::Apns::FeedbackReceiver, if: -> { !Rpush.config.push }
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rpush-2.3.2-java lib/rpush/daemon/apns.rb
rpush-2.3.2 lib/rpush/daemon/apns.rb
rpush-2.3.1-java lib/rpush/daemon/apns.rb
rpush-2.3.1 lib/rpush/daemon/apns.rb
rpush-2.3.0-java lib/rpush/daemon/apns.rb
rpush-2.3.0 lib/rpush/daemon/apns.rb
rpush-2.3.0.rc1 lib/rpush/daemon/apns.rb
rpush-2.2.0-java lib/rpush/daemon/apns.rb
rpush-2.2.0 lib/rpush/daemon/apns.rb
rpush-2.1.0-java lib/rpush/daemon/apns.rb
rpush-2.1.0 lib/rpush/daemon/apns.rb
rpush-2.0.1-java lib/rpush/daemon/apns.rb
rpush-2.0.1 lib/rpush/daemon/apns.rb
rpush-2.0.0-java lib/rpush/daemon/apns.rb
rpush-2.0.0 lib/rpush/daemon/apns.rb
rpush-2.0.0.rc1-java lib/rpush/daemon/apns.rb
rpush-2.0.0.rc1 lib/rpush/daemon/apns.rb
rpush-2.0.0.beta2 lib/rpush/daemon/apns.rb
rpush-2.0.0.beta1 lib/rpush/daemon/apns.rb