Is com.google.android.c2dm.intent.REGISTRATION deprecated? -
short version: intent com.google.android.c2dm.intent.registration
still used @ or has been deprecated gcm?
longer version: google's gcm-demo-client
declares intent in filter, however, if follow same procedure, valid registration id when call gcm.register()
, then, broadcast receiver receives additional registration id because of registration filter, , second registration id bogus (i can't send notification it).
at point, i'm considering removing registration
filter (and keeping receive
) want make sure i'm not missing important in protocol.
you looking @ older version of official google demo. current version doesn't use com.google.android.c2dm.intent.registration
, can see here:
<receiver android:name=".gcmbroadcastreceiver" android:permission="com.google.android.c2dm.permission.send" > <intent-filter> <!-- receives actual messages. --> <action android:name="com.google.android.c2dm.intent.receive" /> <category android:name="com.google.android.gcm.demo.app" /> </intent-filter> </receiver>
Comments
Post a Comment