Close the chat UI
Close the Chat UI
You can close the Chat UI using the KustomerChat.close()
method.
On iOS, this method accepts an optional animated
parameter that determines if the Kustomer Chat UI should animate its transition on closing, or instantly close. This parameter has no effect on Android.
On Android, when the Kustomer UI is displayed, a new Android
Activity
is started causing the JavaScript engine to be backgrounded. This prevents any JavaScript code from being executed while the Kustomer UI is displayed, meaning that calls toKustomerChat.close()
inside of asetTimeout
or any other method will not run.We recommend using
react-native-background-timer
or Headless JS to interact with the Kustomer SDK via JavaScript while the Kustomer UI is open.
Updated 3 months ago