Channel Developers

This page describes Model of the Channel Talk React Native SDK (hereafter referred to as SDK).

Configures option for ChannelIO.boot. This model is used as a parameter for the boot method. For the example, See QuickStart.

field

type

description

pluginKey

string

Plugin Key of Channel.

memberId

(optional) string

An identifier to distinguish each member user.

memberHash

(optional) string

A HMAC-SHA256 value of memberId. See enabling [member hash](doc:member-hash).

profile

(optional) Profile

A user’s Profile.

language

(optional) Language

A user’s language. It is valid when creating a new user. The language of the user that already exists will not change.

unsubscribeEmail

(optional) boolean

Sets whether to receive marketing messages via email.

unsubscribeTexting

(optional) boolean

Sets whether to receive marketing messages via texting (SMS, LMS)

trackDefaultEvent

(optional) boolean

Sets whether to track the default event such as PageView.

hidePopup

(optional) boolean

Sets whether hide popups such as marketing popup and in-app notifications.

channelButtonOption

(optional) ChannelButtonOption

An option for Channel button. You can set the position and margin of the Channel button. The unit of margin is pt (point).

bubbleOption

(optional) BubbleOption

An option for popups for bubble type of marketing messages, and in-app notifications. The unit of margin is pt (point.)

appearance

Appearance

Sets the appearance of SDK.

JavaScript

Languages that the SDK supports.

JavaScript

An option for modifying the position of Channel button. You can set it left down or right down. The default value of position is right, the margin is 20 for each.

JavaScript

Sets the location and margin of the message and bubble-type marketing messages in the in-app. Location defaults to top and margins default to 20 .

JavaScript

Sets the appearance of the Channel button icon.

JavaScript

A user’s profile.

field

type

description

name

(optional)string

A name of a user.

email

(optional)string

A email of a user.

mobileNumber

(optional)string

A mobile number of a user

avatarUrl

(optional)string

An avatar URL of a user.

JavaScript

An user who has visited a website or app with Channel Talk SDK installed.

Field

Type

Description

id

string

An identifier that Channel Talk uses.

memberId

(optional)string

An identifier to distinguish member users.Anonymous user is null.

name

(optional)string

A name of the user.

avatarUrl

(optional)string

An avatar URL of the user.

profile

(optional)object

An object that contains the user’s profile.

alert

number

The number of important notifications that the user has not read.It is displayed as a number on the Channel button.

unread

number

The number of all unread notifications the user has.It includes the number of alert.It is displayed as a red dot on the Channel button.

tags

(optional)string

A tag list of the user.

language

Language

A language of the user.

unsubscribeTexting

(optional)boolean

Whether to receive marketing messages via email.

unsubscribeEmail

(optional)boolean

Whether to receive marketing messages via texting (SMS, LMS)

JavaScript

Data of the in-app popup.

Field

Type

Description

chatId

string

A chat Id of the popup.

avatarURL

string

A avatar URL of the popup.

name

string

A name which displayed on the popup.

message

string

A message which displayed on the popup.

JavaScript

A model used for data configuration on updateUser.

field

type

description

language

Language

A user’s language.

tags

(optional) string

A user’s tag list. Overwrite with tag data you add. The maximum number is ten and is not case-sensitive.

profile

(optional) object

A user’s profile. Overwrite with profile data you add. Initialize if you set the profile value to nil.

profileOnce

(optional) object

A profile to add to the user. Add a new profile value it it does not exist.

unsubscribeEmail

(optional) boolean

Whether to receive marketing messages via email.

unsubscribeTexting

(optional) boolean

Whether to receive marketing messages via email.

JavaScript

An enum object for the appearance of the SDK.

JavaScript

An enum object for the boot result.

field

description

success

The boot was successful.

notInitialized

ChannelIO.initializewas not called.

networkTimeout

The boot failed because of a network issue.

notAvailableVersion

Not a supported SDK version.

serviceUnderConstruction

Channel Talk server is under construction.

requirePayment

The channel is blocked or you need to check the subscription plan.

accessDenied

The server responded with 4xx status code.

unknown

An unknown error.

JavaScript