在_Installation的表中加了owner的Pointer來紀錄用戶登陸了那個裝置。我希望在用戶登出時把_Installation中的owner移除,故此調用了以下代碼:
AVInstallation installation = AVInstallation.getCurrentInstallation();
installation.remove("owner");
installation.saveInBackground(new SaveCallback() {
@Override
public void done(AVException e) {
if (e != null) {
} else {
AVUser.this.logOut();
}
}
});
但調用代表後,_Installation中的owner仍然存在。
想請問如何可以把_Installation中的owner移除或設為空白值?
_Installation表的ACL已把delete / update設定為public
-
创建时间
16年1月19日
-
最后回复
17年3月23日
-
6
回复
-
1.8K
浏览
-
3
用户
-
1
链接