Native SDK

Prev Next

This guide provides details about integrating the MindBehind SDK into your mobile app's webview. This guide will walk you through the steps required to embed the script provided by MindBehind into your app.

Prerequisites

Before proceeding, ensure that you have the following:

  • Access to your mobile app's source code.

  • A MindBehind channel script will be provided to you.

Integrate the MindBehind SDK into your mobile app

1. To obtain the script, go to the homepage after successfully logging in and select the Companies icon. 

2. Click the Channels tab to see the list of channels. 

3. Click on the Update button of the Web Messenger channel for which you want the script. 

4. Click the Getting Started tab. 

5. Copy the script in the relevant field. 

You will receive the script from MindBehind, which will look similar to the script below:

<script async src='<https://cdn.mindbehind.com/sdk/mindbehind-sdk.js?auto=true&key=YOUR_CHANNEL_ID&api=test>'></script>

6. To add the script to your mobile app, open its source code in your preferred code editor.

7. Decide where you want to place the script. You can include it in any HTML file that will be loaded into the web view of your mobile app.

8. Copy the provided script and paste it into the chosen HTML file at the desired location.

9. Ensure your mobile app's web view is configured to load external scripts. This step may vary depending on the framework or platform you are using. Refer to the documentation of your chosen framework or platform for guidance on configuring the web view.

10. After integrating the script, build and run your mobile app to test the implementation. Ensure that the web view loads without errors and that the MindBehind SDK functionality works as expected.

Congratulations! You have successfully integrated the MindBehind SDK into your mobile app's web view. Your application can now leverage MindBehind's capabilities for enhanced user engagement and analytics.

Your title goes here

If you encounter any issues during the implementation process, contact the Insider One team.

Your title goes here

Refer to the File Upload in Web View documentation if the File Upload in Web View is not working.

Your title goes here

Refer to the Android Web View keyboard covering up input documentation if the keyboard covers the input field.

Your title goes here

Refer to How not to reload Web View when resuming the app again to not reload Web View whenever to keep the conversation session.