Channel Developers

This document explains the user object.

Refer to the user object example for more details.

type

description

string

The user's ID.

To create a member user, you must use memberId.

Refer to the memberId in the boot option and the boot.

type

description

string

The ID used for recognizing a member user.

If memberId is specified in the boot option, the user is considered a member user.

type

description

string | undefined

The name of a user.

Set via updateUser.

type

description

string

The URL of the user's avatar image.

type

description

number

The total count of unread notifications for the user.

It includes the number of alert. It is displayed as a red dot on the channel button.

type

description

number

The count of important unread notifications for the user.

It is displayed as a number on the channel button.

type

description

object | undefined

A user’s profile information. Set via updateUser or the profile of boot option.

Use onFollowUpChanged to register a callback function that is invoked when the user updates their profile.

type

description

boolean

Indicates whether the user has opted out of marketing emails.

Set via updateUser or unsubscribeEmail of boot option.

type

description

boolean

Indicates whether the user has opted out of marketing SMS. Set via updateUser or unsubscribeTexting of boot option.

type

description

string[]

A list of tags associated with the user. All tags are in lowercase.

Set via updateUser, addTags, and removeTags.

type

description

string

The user's language setting. Used for translation purposes.

Set via updateUser and language of boot option.

Following 32 languages supported.

: 'de'(German), 'hi'(Hindi), 'no'(Norwegian), 'ru'(Russian), 'fi'(Finnish), 'pt'(Portuguese), 'hr'(Croatian), 'fr'(French), 'hu'(Hungarian), 'uk'(Ukrainian), 'sk'(Slovak), 'ca'(Catalan), 'sv'(Swedish), 'ko'(Korean), 'id'(Indonesian), 'ms'(Malay), 'el'(Greek), 'en'(English), 'it'(Italian), 'es'(Spanish), 'he'(Hebrew), 'zh'(Chinese), 'cs'(Czech), 'ar'(Arabic), 'vi'(Vietnamese),'th'(Thai), 'ja'(Japanese), 'pl'(Polish), 'ro'(Romanian), 'da'(Danish), 'nl'(Dutch), 'tr'(Turkish)

JSON