How to fetch current user (BackendlessUser)?
Hi,
See docs - https://backendless.com/products/documentation/
You have to login using one of the methods, for example, in iOS:
https://backendless.com/documentation/users/ios/users_login.htm
https://backendless.com/documentation/users/ios/users_facebook_login.htm
and then use current user -
https://backendless.com/documentation/users/ios/users_facebook_login.htm
Hi,
To fetch the BackendlessUser object I need to use login method again? Did I understand you correctly?
If you fetched the user using PersistenceService (Data) methods - this is not enough to set backendless.userService.currentUser property, it will be null. To set it you should log in using login methods (see examples on the links above).
When you already logged in - you can use currentUser, it is set with BackendlessUser object of logged in user.