I am trying to migrate to GCM in Android, C2DM now being deprecated. The registration process described here is different from registration describ
I've successfully migrated my C2DM project to GCM. Tested, it works fine. The only changes were:
sender upon registrationThat was it, as far as the interaction with Google goes. There were more some changes dictated by the app's logic:
Throwing out the C2DM logic completely out of the server would be unwise - not everyone upgrades their Android apps. The old, C2DM-enabled versions will be out in the wild for some time. And Google pledged to keep C2DM running in the short term. So message sending is conditional - depending on reg ID type, it sends either to GCM or to C2DM.
EDIT re: conditional logic:
if($RegID_Is_GCM)
{
$Auth = GCM_Auth();
$URL = $GCM_URL;
}
else
{
$Auth = C2DM_AUTH();
$URL = $C2DM_URL;
}