Class: Gcm::Device

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

Overview

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

In order for the Gcm::Feedback system to work properly you MUST touch the last_registered_at column every time 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.



31
32
33
# File 'lib/gcm_rails_mongo_mapper/app/models/gcm/device.rb', line 31

def feedback_at
  @feedback_at
end