I've seen that c2dm itself is deprecated. But the new method, Google Cloud Messaging, seems to send intents with com.google.android.c2dm.intent.RECEIVE as the action.
My code is using this to get the registration key:
gcm = GoogleCloudMessaging.getInstance(getApplicationContext());
gcm.register(SENDER_ID);
Things are arriving correctly, but I'm wondering if I've left something in a half-deprecated state.
the com.google.android.c2dm.intent.RECEIVE
is also used by the firebase cloud messaging
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With