我使用parse.com为推送通知注册了一个Android应用程序。现在我想删除一些设备的频道?
我通过以下方式注册频道:
channels = new LinkedList<String>();
channels.add(getString(R.string.shirt_channel));
ParseInstallation.getCurrentInstallation().put("channels", channels);
ParseInstallation.getCurrentInstallation().saveInBackground()
答案 0 :(得分:3)
我使用的是旧版本的Parse.com Android库。
如果你使用Parse-1.7.0,你订阅了一个频道:
ParsePush.subscribeInBackground(getString(R.string.shirt_channel));
并取消订阅同一频道:
ParsePush.unsubscribeInBackground(getString(R.string.shirt_channel));