在Android上解析 - 如何停止接收推送通知

时间:2015-02-05 09:02:26

标签: android parsing notifications push-notification push

我配置了解析,一切都很好;当我从服务器发送通知时,我的手机会收到通知。

问题是当用户取消选中checkBox时,他/她应该停止接收通知。

这是我开始解析服务的代码:

Parse.initialize(this, "cod1", "cod2");
ParseInstallation.getCurrentInstallation().saveInBackground();

我已尝试使用

停止通知
ParseInstallation.getCurrentInstallation().deleteInBackground();

ParsePush.unsubscribeInBackground("");

但上述两个都不起作用:S
提前谢谢!

0 个答案:

没有答案