I have a problem with an app using GCM, the scenario is this:
We need to update registration id with Canonical Id( By finding index position of array). You may Follow this working Ready use Code