我正在开发一个 Android 应用程序,一切正常。我只想问有没有办法在一次调用中取消订阅所有解析 channel 而不是使用:
ParsePush.unsubscribeInBackground("channel1");
检查谷歌并解析 android api 没有找到任何方法来做到这一点。
最佳答案
channel 信息写在Installation类中。只需清除“ channel ”列即可。
ParseInstallation installation = ParseInstallation.getCurrentInstallation();
installation.remove("channels");
installation.saveEventually(new SaveCallback() { // or saveInBackground
@Override
public void done(ParseException e) {
// TODO: add code here
}
});
关于android - 有什么方法可以在 Android 的一次调用中取消订阅所有解析 channel ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32218556/