mirap
mirap

Reputation: 1266

Update PFUser from server

I have one PFUser logged in on two iOS devices. When each app starts, I need to download PFUser data from server to keep latest data (made on the second device).

Is there any method to do that? Because in documentation there is no mention of such thing: https://parse.com/docs/osx/api/Classes/PFUser.html

Upvotes: 0

Views: 132

Answers (1)

mirap
mirap

Reputation: 1266

Ok, there are two solutions:

1) As Michael mentioned - not to use Parse. :)

2) Or use:

[[PFUser currentUser] fetchInBackgroundWithBlock:^(PFObject *object, NSError *error) {
    ...
}];

Upvotes: 1

Related Questions