Cedric Beust Cedric Beust - 1 year ago 133
Android Question

Is com.google.android.c2dm.intent.REGISTRATION deprecated?

Short version: is the intent

still used at all or has it been completely deprecated by GCM?

Longer version: Google's
declares this intent in its filter, however, if I follow the same procedure, I get a valid registration id when I call
and then, my broadcast receiver receives an additional registration id because of the REGISTRATION filter, and this second registration id is bogus (I can't send any notification to it).

At this point, I'm considering removing the
filter (and keeping just
) but I want to make sure I'm not missing something important in the protocol.

Answer Source

You are probably looking at an older version of the official Google demo. The current version doesn't use com.google.android.c2dm.intent.REGISTRATION, as you can see here:

        android:permission="com.google.android.c2dm.permission.SEND" >
            <!-- Receives the actual messages. -->
            <action android:name="com.google.android.c2dm.intent.RECEIVE" />
            <category android:name="com.google.android.gcm.demo.app" />
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download