Configure the SDK in a Native Frame
Native frame
In order to use the native frame you must to follow these steps:
Import MobbScanWebNative-Android project on your Android Studio.
Change productFlavors' data to set your urls:
productFlavors{ def STRING = "String" def URL = "URL" local{ buildConfigField STRING, URL, "\"file:///android_asset/web/index.html\"" applicationId "com.mobbeel.mobbscan.webnative" } remote{ buildConfigField STRING, URL, "\"https://yourmobbscaninstance.yourcompany.com/mobbscan/index.html\"" applicationId "com.mobbeel.mobbscan.webnative" } }If you set the build variant to local you have to include your web code into android's assets folder to load it.
To communicate with native plugin from javascript we provide a js library called mobbscan.js with all methods available.
