Skip to content
This repository has been archived by the owner on Mar 9, 2018. It is now read-only.

Canonical IDs

Marc Rohloff edited this page Oct 2, 2013 · 5 revisions

Android docs: Canonical IDs.

GCM under certain situations will require you to update your registration IDs. You must listen for these events and update your records accordingly. Rapns provides a reflection hook for you to implement:

Rapns.reflect do |on|
  # Called when the GCM returns a canonical registration ID.
  # You will need to replace old_id with canonical_id in your records.
  on.gcm_canonical_id do |old_id, canonical_id|
  end
end

See Reflection API for more information.

Clone this wiki locally