有什么方法可以在 Android 中的一次调用中取消订阅所有解析频道
Is there any way to unsubscribe from all the parse channel in one call in Android
我正在开发一个 android 应用程序,一切正常。我只想问有没有办法在一次调用中取消订阅所有解析通道而不是使用 :
ParsePush.unsubscribeInBackground("channel1");
检查 google 并解析 android api 没有找到任何方法。
频道信息写在安装class中。只需清除 "channels" 列。
ParseInstallation installation = ParseInstallation.getCurrentInstallation();
installation.remove("channels");
installation.saveEventually(new SaveCallback() { // or saveInBackground
@Override
public void done(ParseException e) {
// TODO: add code here
}
});
我正在开发一个 android 应用程序,一切正常。我只想问有没有办法在一次调用中取消订阅所有解析通道而不是使用 :
ParsePush.unsubscribeInBackground("channel1");
检查 google 并解析 android api 没有找到任何方法。
频道信息写在安装class中。只需清除 "channels" 列。
ParseInstallation installation = ParseInstallation.getCurrentInstallation();
installation.remove("channels");
installation.saveEventually(new SaveCallback() { // or saveInBackground
@Override
public void done(ParseException e) {
// TODO: add code here
}
});