Using updateUserAttributes Method

An external ID is a unique user identifier generated in your system to avoid duplicating user profiles.

Send your user ID to Reteno when creating, updating, or matching user data. This way, Reteno can find the user's profile and update their data.

Using updateUserAttributes method is a must in such cases:

  1. The user logged in and then updated the application with the SDK for the first time.
  2. The user signed up.
  3. The user logged in.
  4. The user profile has been updated.

Sending the user ID will ensure the correct matching and up-to-dateness of the user data.

šŸ“˜

Note

  • You can call the attributes update method without limitations — for example, on every app open.
  • The SDK does not validate custom contact fields on its side: the data is passed to the server as is. If a passed field does not exist in the account, the request fails with an error and the update is not applied.
  • A "clear user data at logout" scenario is not supported — the data stays bound to the device. To let several users receive their own notifications on a shared device, use the SDK's multi-account support instead.

Each SDK type has a particular way of sending user ID; see instructions below: