I am testing your system out, and trying to retrieve user custom properties.
Eventhough the property is populated (see screenshot), it still returns nil in xcode.
print(“user birthdate = (user.getProperty(“birthdate”))”) returns
//get users
let dataStore = Besi.persistenceService.of(BackendlessUser.ofClass())
dataStore.find(
{ (users) → () in
log.green(“Users have been fetched (ASYNC): (users)”)
let currentPage = users.getCurrentPage()
print(“Loaded (currentPage.count) user objects”)
print(“Total users in the Backendless starage - (users.totalObjects)”)
for user in currentPage as! [BackendlessUser] {
print(“user birthdate = (user.getProperty(“birthdate”))”)
}
},
error: { (error) → () in
log.red(“Server reported an error (ASYNC): (error)”)
}
)
Returns:
Loaded 2 restaurant objects
Total restaurants in the Backendless starage - 2
Restaurant name = nil
Restaurant name = nil