Sha256: 96e5feac1fefc426b3909a90fb024fd98aab9a3b0fd46827144d8bdb7f4d86eb

Contents?: true

Size: 443 Bytes

Versions: 12

Compression:

Stored size: 443 Bytes

Contents

module Rpush
  def self.apns_feedback
    require 'rpush/daemon'
    Rpush::Daemon.common_init

    Rpush::Apns::App.all.each do |app|
      # Redis stores every App type on the same namespace, hence the
      # additional filtering
      next unless app.service_name == 'apns'
      next unless app.feedback_enabled

      receiver = Rpush::Daemon::Apns::FeedbackReceiver.new(app)
      receiver.check_for_feedback
    end

    nil
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rpush-8.0.0 lib/rpush/apns_feedback.rb
rpush-7.0.1 lib/rpush/apns_feedback.rb
rpush-7.0.0 lib/rpush/apns_feedback.rb
rpush-6.0.1 lib/rpush/apns_feedback.rb
rpush-6.0.0 lib/rpush/apns_feedback.rb
rpush-5.4.0 lib/rpush/apns_feedback.rb
rpush-5.3.0 lib/rpush/apns_feedback.rb
rpush-5.2.0 lib/rpush/apns_feedback.rb
rpush-5.1.0 lib/rpush/apns_feedback.rb
rpush-5.0.0 lib/rpush/apns_feedback.rb
rpush-4.2.0 lib/rpush/apns_feedback.rb
rpush-4.1.1 lib/rpush/apns_feedback.rb