Plug-in
...
Embed plug-in
Embed in mobile app

Native Android

introduction 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 github 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 https //github com/intelliprove/intelliprove web plugin android https //github com/intelliprove/intelliprove web plugin android adding the sdk last update 16/09/2024 17 00 https //archbee doc uploads s3 amazonaws com/ 0r dnpmbbllxmaowvg2u/wkeciktc8kovr5u8gqziu intelliprovewebview\ aar 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\ aar and androidx's appcompatibility constraintlayout dependencies { implementation("androidx constraintlayout\ constraintlayout 2 1 4") implementation files('libs/intelliprovewebview\ aar') } setting up the project in build gradle , ensure the correct kotlin version is used buildscript { ext kotlin version = '1 8 0' } in app/build gradle , define the minsdkversion android { defaultconfig { minsdkversion 24 } } 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 \<manifest xmlns\ android="http //schemas android com/apk/res/android"> \<uses feature android\ name="android hardware camera" android\ required="false" /> \<uses permission android\ name="android permission internet" /> \<uses permission android\ name="android permission camera" /> \<application > \<activity android\ name="com intelliprove webview\ intelliwebviewactivity" android\ theme="@style/theme appcompat noactionbar" /> \</application> \</manifest> usage 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 docid\ nhmyw3igywbv wbatholb ) 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 package com intelliprove import androidx appcompat app appcompatactivity import android os bundle import android util log import android widget button import com intelliprove webview\ intelliwebviewactivity import com intelliprove webview\ intelliwebviewdelegate class mainactivity appcompatactivity(), intelliwebviewdelegate { override fun oncreate(savedinstancestate bundle?) { super oncreate(savedinstancestate) setcontentview(r layout activity main) val openwebviewbutton = findviewbyid\<button>(r id openwebviewbutton) openwebviewbutton setonclicklistener { openwebview() } } private fun openwebview() { intelliwebviewactivity start( this, "https //plugin streaming intelliprove com/?action token=xxx", this ) } override fun didreceivepostmessage(postmessage string) { log d("mainactivity", postmessage) // postmessage is received as json string, so needs to be parsed } } next steps to match the plug in with your brand's colours and fonts, please visit our customisation docid 0ukxybkmvpnt1kv0jgwml documentation