As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
you should be able to access the custom property just like any other object, such as myCustomUser.address."
Thanks,
Pranav
S
Shae Hazelwood
said
almost 6 years ago
Would you have to make a request to this server in order to downcast the user to the custom user class? For example a user who's session is still active.
let testUser = Kinvey.sharedClient.activeUser as? AppUser
print(testUser?.firstName!)
In my case, the testUser's first name is nil.
P
Pranav J
said
almost 6 years ago
Shae,
Adding a custom type also requires that you downcast any User objects returned by the library to your CustomUser type, in order to use the properties of the custom type. Please check example on this link.
Shaikh Farooq
I want to access custom attributes from user collection like "user_type" which is there in user collection using swift 3?
This question has been answered on portal. Copying my answer on forum so that everyone can see it.
"If you are subclassing User as demonstrated here: https://devcenter.kinvey.com/ios/guides/users#UserClass,
you should be able to access the custom property just like any other object, such as myCustomUser.address."
Thanks,
Pranav
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstPranav J
This question has been answered on portal. Copying my answer on forum so that everyone can see it.
"If you are subclassing User as demonstrated here: https://devcenter.kinvey.com/ios/guides/users#UserClass,
you should be able to access the custom property just like any other object, such as myCustomUser.address."
Thanks,
Pranav
Shae Hazelwood
Would you have to make a request to this server in order to downcast the user to the custom user class? For example a user who's session is still active.
In my case, the testUser's first name is nil.
Pranav J
Adding a custom type also requires that you downcast any User objects returned by the library to your CustomUser type, in order to use the properties of the custom type. Please check example on this link.
Thanks,
Pranav
-
Why do I get "Undefined symbols" errors when building with KinveyKit?
-
How do I register push tokens?
-
When using social login, to perform a log-out, do I need to log out of the social network, Kinvey, o
-
How can I assign additional properties to users?
-
Does KinveyKit support 64-bit ARM devices, such as iPhone 5s?
-
Authorization Token Invalid or Expired
-
BOOL and how it is stored in the database.
-
Offline saving throwing errors
-
Custom endpoint not able to form request object
-
Security through business logic
See all 437 topics