Exception: Gcm::Errors::NotRegistered

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gcm_rails_mongo_mapper/gcm_rails_mongo_mapper.rb

Overview

From Google:- An existing registration ID may cease to be valid in a number of scenarios, including:

- If the application manually unregisters
- If the application is automatically unregistered which can (but not guaranteed) to happen if the user
  uninstalls the application
- If the registration ID expires. Google might decide to refresh registration IDs

For all cases above, it is recommended that this registration ID is removed from the 3rd party server

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ NotRegistered

:nodoc



40
41
42
# File 'lib/gcm_rails_mongo_mapper/gcm_rails_mongo_mapper.rb', line 40

def initialize(message) # :nodoc
  super("The registration_id is no longer valid: '#{message}'")
end