2

我无法取消注册 GCMRegistrar。我试图在我的代码中运行:

GCMRegistrar.unregister(getApplicationContext());

并且

GCMRegistrar.setRegisteredOnServer(getApplicationContext(), false);

并且

Intent unregIntent = new Intent("com.google.android.c2dm.intent.UNREGISTER");
unregIntent.putExtra("app", PendingIntent.getBroadcast(this, 0, new Intent(), 0));
startService(unregIntent);

即使我清除了我的应用程序的数据/缓存并且这个应用程序被杀死但没有卸载,我也会收到通知。(我也检查了 DDMS)。

不幸的是,由于版权公司,我无法粘贴我的代码。有人有同样的问题吗?

4

0 回答 0