parse4j icon indicating copy to clipboard operation
parse4j copied to clipboard

Updates to ParseUser

Open briblanch opened this issue 11 years ago • 4 comments

I see that some of the methods in ParseUser are stubbed out for now. Any eta on when they will be implemented? Also, will the currentUser be set when ParseUser is fully implemented? Thanks!

briblanch avatar Mar 25 '14 06:03 briblanch

Soon... Already working on it On Mar 25, 2014 2:57 AM, "briblanch" [email protected] wrote:

I see that some of the methods in ParseUser are stubbed out for now. Any eta on when they will be implements? Also, will the currentUser be set when ParseUser is fully implemented? Thanks!

Reply to this email directly or view it on GitHubhttps://github.com/thiagolocatelli/parse4j/issues/5 .

thiagolocatelli avatar Mar 25 '14 11:03 thiagolocatelli

@thiagolocatelli I am trying to update properties on a user. I have tried user.saveInBackground() and user.save() but get Parse::UserCannotBeAlteredWithoutSessionError. The sessionToken is set on the user. Do you know how to get around this before the new update? Thanks!

briblanch avatar Apr 27 '14 03:04 briblanch

Can you send me your code or a sample? Thanks

thiagolocatelli avatar Apr 28 '14 03:04 thiagolocatelli

The user variable is set as a static variable with the instance of a user that is returned when

ParseUser.login(...) 

is called

That user variable is then retrieved and used as show below

user.put("weight", view.getWeightField());
user.put("height", view.getHeightField());
user.put("age", view.getAgeField());
user.saveInBackground();

briblanch avatar Apr 28 '14 21:04 briblanch