Why don’t client nicknames and avatars update after refreshing the Token or modifying user info?

Issue

After calling any RC server API with a new nickname and avatar, why don’t the client’s nickname and avatar update?

  • /user/getToken.json

  • /user/refresh.json

Analysis

Only the name and avatar in mobile remote push notifications will update.

Push service nicknames and avatars update

The name and portraitUri passed when getting or refreshing a Token are only used for mobile remote push notifications. After you request the RC Server API to refresh the Token or update user info, the server receives the new nickname and avatar. Users will see the new nickname in push notifications.

Client UI components won’t update nicknames and avatars

The nickname and avatar stored in RC ’s push service are only used for push notifications. When RC ’s client UI components display user info (avatar + name), the data must be provided by the user info provider set by the app. The SDK will request the specified user info from the provider you set.

For clients using SDK 5.X, refer to: