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 |
| Plugin Key of Channel. |
memberId | (optional) | An identifier to distinguish each member user. |
memberHash | (optional) | A HMAC-SHA256 value of memberId. See enabling [member hash](doc:member-hash). |
profile | (optional) | A user’s Profile. |
language | (optional) | 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) | Sets whether to receive marketing messages via email. |
unsubscribeTexting | (optional) | Sets whether to receive marketing messages via texting (SMS, LMS) |
trackDefaultEvent | (optional) | Sets whether to track the default event such as PageView. |
hidePopup | (optional) | Sets whether hide popups such as marketing popup and in-app notifications. |
channelButtonOption | (optional) | 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) | An option for popups for bubble type of marketing messages, and in-app notifications. The unit of margin is pt (point.) |
appearance | Sets the appearance of SDK. |
Languages that the SDK supports.
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.
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 .
Sets the appearance of the Channel button icon.
A user’s profile.
field | type | description |
|---|---|---|
name | (optional) | A name of a user. |
(optional) | A email of a user. | |
mobileNumber | (optional) | A mobile number of a user |
avatarUrl | (optional) | An avatar URL of a user. |
An user who has visited a website or app with Channel Talk SDK installed.
Field | Type | Description |
|---|---|---|
id |
| An identifier that Channel Talk uses. |
memberId | (optional) | An identifier to distinguish member users.Anonymous user is null. |
name | (optional) | A name of the user. |
avatarUrl | (optional) | An avatar URL of the user. |
profile | (optional) | An object that contains the user’s profile. |
alert |
| The number of important notifications that the user has not read.It is displayed as a number on the Channel button. |
unread |
| 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) | A tag list of the user. |
language | A language of the user. | |
unsubscribeTexting | (optional) | Whether to receive marketing messages via email. |
unsubscribeEmail | (optional) | Whether to receive marketing messages via texting (SMS, LMS) |
Data of the in-app popup.
Field | Type | Description |
|---|---|---|
chatId |
| A chat Id of the popup. |
avatarURL |
| A avatar URL of the popup. |
name |
| A name which displayed on the popup. |
message |
| A message which displayed on the popup. |
A model used for data configuration on updateUser.
field | type | description |
|---|---|---|
language | A user’s language. | |
tags | (optional) | A user’s tag list. Overwrite with tag data you add. The maximum number is ten and is not case-sensitive. |
profile | (optional) | A user’s profile. Overwrite with profile data you add. Initialize if you set the profile value to nil. |
profileOnce | (optional) | A profile to add to the user. Add a new profile value it it does not exist. |
unsubscribeEmail | (optional) | Whether to receive marketing messages via email. |
unsubscribeTexting | (optional) | Whether to receive marketing messages via email. |
An enum object for the appearance of the SDK.
An enum object for the boot result.
field | description |
|---|---|
success | The boot was successful. |
notInitialized |
|
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. |