This page describes callbacks of Channel Talk React Native SDK (hereafter referred to as SDK).
Invoked when the messenger is shown. Examples are the following:
calls
showMessengercalls
openChatWhen the user opens messenger through Channel button
Invoked when the messenger is hidden. Examples are the following:
calls
hideMessengercalls
sleepcalls
shutdownWhen the user closes messenger explicitly, such as by clicking the X button.
Invoked when SDK completes creating a new chat. Examples are the following:
Explicit creating chat by the user such as by click a [*new Chat button*]
calls
openChatwithchatId = nil
Invoked when the count of the user’s badge is changed. Examples are the following:
bootWhen the user received the messages or marketing message
Invoked when the number of notifications changes or at boot. The details of this method's parameters, 'unread', and 'alert' are as follows:
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.alert : The number of important notifications that the user has not read. It is displayed as a number on the Channel button.
Invoked when Followup information is changed by the user.
It is not called by ChannelIO.updateUser. Values in dictionaries are nullable.
Invoked when the user clicks a link in the chat or clicks the link button.
If this method returns true, URL redirection performed by the SDK will not work.
Invoked when receiving In-app message popup. Examples are the following:
receive the message from the manager
receive marketing message
See the PopupData documentation for details on the events that are parameters of this function.
Invoked when a system push notification is clicked. Call next function to use default behavior.
The onPushNotificationClicked callback only works for Android. A call to this function on iOS will be silently ignored.