Consistency between local and server user properties
I'm struggling on how to handle errors when comunicating to the server due to a lack of information on how some things work on Backendless.
Consider I set a Property "score" on a user and update the user object on the server with a value of 100 points.
Then, my user scores another 10 points. I look to the score property in the BackendlessUser object and add 10 to it.
Then I call update to upload the user object to the server but it fails due to any reason.
Ok, I save those 10 points that never were saved to try another moment.
Then the user leaves, time goes by and the app gets killed.
The user comes back, I call
because is ok, then I get my currenUser.
The user scores again. I look to the score property and is 110 because it was setted like that before. But because I'm saving the points that never went uploaded what I will like to know, it's not the score of the currentUser in local, but the score of the CurrentUser that are saved in the cloud.
How can I be sure, that my object mBackdelessUser has the same values/properties that the one stored in the cloud? Is there any kind of synchronization doing on the background besides update method like maybe calling currentUser()?
Thank you for your help!