Class: C2dm::Device

Inherits:
Base
  • Object
show all
Defined in:
lib/c2dm_on_rails/app/models/c2dm/device.rb

Overview

Represents an Android phone. An C2dm::Device can have many C2dm::Notification.

In order for the C2dm::Feedback system to work properly you MUST touch the last_registered_at column everytime someone opens your application. If you do not, then it is possible, and probably likely, that their device will be removed and will no longer receive notifications.

Example:

Device.create(:registration_id => 'FOOBAR')

Instance Attribute Summary collapse

Instance Attribute Details

#feedback_atObject

The feedback_at accessor is set when the device is marked as potentially disconnected from your application by Google.



24
25
26
# File 'lib/c2dm_on_rails/app/models/c2dm/device.rb', line 24

def feedback_at
  @feedback_at
end