iOS (Custom Webview)
In cases where the implementation of the chatbot requires customization of the UI or app elements its recommended to implement a custom webview.
Webview
You can load the webview with the following URL which is configured to auto open the chatbot on receiving the trigger event.
Once your webview has been created with this URL on click of a button or any other action which loads the URL you will invoke the following Javascript in the webview.
Here is the example of how to configure the webview and use the above function.
We also provide callbacks to assist closing the webview.
In the above code snippet we register the actionTapped
handler to listen to the callbacks. Three main actions are sent back in open
, minimize
, close
With the webview configured you can use now have the custom view controller as child or top level container as required in your app.
Last updated