Initial integration
...
Embed Plug-in
Embed in mobile app
Native Android
The Android integration of the IntelliProve plug-in involves incorporating the IntelliProve SDK files into your project dependencies.
All this is nicely laid out in our step-by-step guide below.
The integration guide covers three sections:
- Adding the SDK
- Setting up the project
- Usage
Our GitHub repository provides a fully functional example of our platform's integration, demonstrating the seamless setup and utilisation of our native SDKs for Android platforms.
- All the following actions are taken in root folder of the project
- Add folder app/libs
- Copy the IntelliProveWebView.aar into this folder
- In app/build.gradle, add a dependency for the IntelliProveWebView.aarand androidx's AppCompatibility ConstraintLayout.
- In build.gradle, ensure the correct Kotlin version is used:
- In app/build.gradle, define the minSdkVersion:
- In app/src/main/AndroidManifest.xml, add the needed permissions for Camera and Internet usage, and an activity tag, so the IntelliWebViewActivity can be shown in the application:
- Open the Activity from where the IntelliWebView will be triggered. In our example this is MainActivity.kt.
- Let the Activity inherit from the IntelliWebViewDelegate class, which provides the didReceivePostMessage delegate. (For more information on the postmessages, including the JSON format, refer to Message events.)
- Use the openWebView to open the web view with a generated web plug-in URL.
Please note:
- The WebView is automatically dismissed by the SDK when receiving the dismiss post message.
- The SDK creates a new Activity, which means the entire screen is filled with the IntelliProve plug-in. For use cases where this is not desired, contact our support team for a more custom integration.
- To match the plug-in with your brand's colours and fonts, please visit our Customisation documentation.