Updating User Information
Introduction
When you start the SDK, a user is created in our backend with all of the parameters that you sent in the UserInfo
object using the registerUser()
method.
Updating a user
If a user's data is changed in your app, you can update the UserInfo
object to maintain consistency. To do this, we expose a method where you can pass updated data. It's important to know that the method needs to receive all user information again.
updateUser(userInfo: UserInfo, context: Context): Boolean
This method returns a true if the user information was successfully updated in our server.
Warning
You must submit the the userInfo object with all the information, not just the fields to be updated.
Warning
You can modify any of the
UserInfo
attributes except foruserPhone
, which must be the same as whenregisterUser()
was called.
Updated over 2 years ago