I have a custom logical field called Approved in my custom ParseUser object. We change this field from false to true through the web application. According to the documentation, I should be able to update currentUser after changing the flag using fetchInBackground (), for example:
ParseUser.getCurrentUser().fetchInBackground(new GetCallback<ParseObject>() { @Override public void done(ParseObject parseObject, ParseException e) { Log.v("qwer", "fetched User: " + ((CustomUser)parseObject).isApproved()); } });
But even if the approved flag is set to true, the result returned from the server is always false. If I do not log out and log into the system again, at what point currentUser and the corresponding field will be synchronized with the server.
Why fetchInBackground () does not work for the local user, and if I use it incorrectly, how to update currentUser.
source share