问题
I want to un-register C2DM registration id. When I run the code below:
public void unregisterForC2DM() {
Intent unregIntent = new Intent("com.google.android.c2dm.intent.UNREGISTER");
unregIntent.putExtra("app", PendingIntent.getBroadcast(this, 0, new Intent(), 0));
startService(unregIntent);
}
app should not get the message from third party server. But app is still getting messages from server. I have put all required permission in the manifest file.
Referred site : http://code.google.com/android/c2dm/
来源:https://stackoverflow.com/questions/8851589/unregister-c2dm-registration-id