Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/182.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Android上解析-如何停止接收推送通知_Android_Parsing_Notifications_Push Notification_Push - Fatal编程技术网

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

在Android上解析-如何停止接收推送通知,android,parsing,notifications,push-notification,push,Android,Parsing,Notifications,Push Notification,Push,我配置了解析,一切都很好;当我从服务器发送通知时,我的手机会收到它 问题是,当用户取消选中复选框时,他/她应该停止接收通知 以下是启动解析服务的代码: Parse.initialize(this, "cod1", "cod2"); ParseInstallation.getCurrentInstallation().saveInBackground(); 我已经试过停止通知了 ParseInstallation.getCurrentInstallation().deleteInBackgrou

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

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

以下是启动解析服务的代码:

Parse.initialize(this, "cod1", "cod2");
ParseInstallation.getCurrentInstallation().saveInBackground();
我已经试过停止通知了

ParseInstallation.getCurrentInstallation().deleteInBackground();

但上述两种方法都不起作用:S

提前谢谢

嗨。你找到答案了吗?我也面临同样的问题…你解决了吗?
ParsePush.unsubscribeInBackground("");