我正在使用Parse SDK 1.13.1 for Android,我需要通過按鈕單擊註銷用戶。它的工作,但是當我打電話給ParseUser.getCurrentUser()它給我最後登錄的用戶而不是null。在Android中解析遷移後未註銷ParseUser currentUser的註銷功能
對於解析初始化我寫下面的代碼:
Parse.initialize(new Parse.Configuration.Builder(this).applicationId("PARSE_APPLICATIONID").clientKey("PARSE_CLIENT_KEY").server("PARSE_SERVER_URL").build());
對於註銷我寫下面的代碼
ParseUser.logOut();
,也試過
ParseUser.getCurrentUser().logOut();
ParseUser currentUser = ParseUser.getCurrentUser(); // this should be null but not
但是,似乎ParseUser.getCurrentUser ();註銷後不爲空。
如何從緩存中刪除當前用戶?
請幫我解決這個問題。謝謝
在回購中發現一個問題,提示它可能是一個錯誤。 https://github.com/ParsePlatform/Parse-SDK-Android/issues/539 – Cliffordwh