我正在开发一个 android 应用程序,一切正常。我只是想问一下,有没有办法在一次调用中取消订阅所有解析通道,而不是使用:
ParsePush.unsubscribeInBackground("channel1");
检查谷歌并解析 android api 没有找到任何方法来做到这一点。
我正在开发一个 android 应用程序,一切正常。我只是想问一下,有没有办法在一次调用中取消订阅所有解析通道,而不是使用:
ParsePush.unsubscribeInBackground("channel1");
检查谷歌并解析 android api 没有找到任何方法来做到这一点。
频道信息写在 Installation 类中。只需清除“渠道”列。
ParseInstallation installation = ParseInstallation.getCurrentInstallation();
installation.remove("channels");
installation.saveEventually(new SaveCallback() { // or saveInBackground
@Override
public void done(ParseException e) {
// TODO: add code here
}
});