Hi guys, I hope your all well and had a good weekend…
I am having trouble with synchronising my local device user properties with that of the actual Backendless DB. It seems that only when an edit happens against the user will the device actually reflect true or new properties I manually add to the backendless Users class.
Is there a function I can call that will pull a fresh property values from the backendless DB thus updating my local device?
This is what I currently do but this just pulls locally rather than from the BackEndless DB:
BackendlessUser *user = backendless.userService.currentUser;
NSString *ppAV = [NSString stringWithFormat:@"%@",[user getProperty:@“pandaPoundsAV”]];
Regards
BackendlessUser *user = backendless.userService.currentUser;
NSString *usersID = user.objectId;
BackendlessDataQuery *query = [BackendlessDataQuery query];
query.whereClause = [NSString stringWithFormat:@"objectId = \'%@\'", usersID];
BackendlessCollection *collection = [[backendless.persistenceService of:[BackendlessUser class]] find:query];
NSLog(@"HERE IS THE USER: %@",collection);
This is it, you got it absolutely right.