lib/apn_on_rails/libs/feedback.rb
# Retrieves a list of APN::Device instnces from Apple using
# the <tt>devices</tt> method. It then checks to see if the
# <tt>last_registered_at</tt> date of each APN::Device is
# before the date that Apple says the device is no longer
# accepting notifications then the device is deleted. Otherwise
# it is assumed that the application has been re-installed
# and is available for notifications.
# 
# This can be run from the following Rake task:
#   $ rake apn:feedback:process
Retrieves a list of APN::Device instnces from Apple using
the devices method. It then checks to see if the
last_registered_at date of each APN::Device is
before the date that Apple says the device is no longer
accepting notifications then the device is deleted. Otherwise
it is assumed that the application has been re-installed
and is available for notifications.

This can be run from the following Rake task:
$ rake apn:feedback:process
Retrieves a list of APN :: Device instnces from Apple using the devices method . It then checks to see if the last_registered_at date of each APN :: Device is before the date that Apple says the device is no longer accepting notifications then the device is deleted . Otherwise it is assumed that the application has been re - installed and is available for notifications . This can be run from the following Rake task : $ rake apn : feedback : process
def process_devices
        APN::Feedback.devices.each do |device|
          if device.last_registered_at < device.feedback_at
            device.destroy
          end
        end
      end
def process_devices APN :: Feedback . devices . each do | device | if device . last_registered_at < device . feedback_at device . destroy end end end
Retrieves a list of APN::Device instnces from Apple using
the <tt>devices</tt> method.
Retrieves a list of APN :: Device instnces from Apple using the <tt > devices< / tt > method .